ios – 带有Realm for WatchOS的架构i386的未定义符号

ios – 带有Realm for WatchOS的架构i386的未定义符号,第1张

概述我想将AppleWatch-Extension添加到我当前的Projekt中. 我正在使用这个podfile: def shared_pods pod 'RealmSwift', '2.0.2'endtarget 'Target-iOS' do platform :ios, '9.0' use_frameworks! ... shared_podsendtarg 我想将AppleWatch-Extension添加到我当前的Projekt中.
我正在使用这个podfile:

def shared_pods    pod 'RealmSwift','2.0.2'endtarget 'Target-iOS' do  platform :ios,'9.0'  use_frameworks!  ...  shared_podsendtarget 'Target-MensaWidget' do  platform :ios,'9.0'  use_frameworks!  shared_podsendtarget 'Watch Extension' do  platform :watchos,'2.0'  use_frameworks!  shared_podsend

安装pod后,我将在我的控制台中收到此警告:

[!] [Xcodeproj] Generated duplicate UUIDs:

当我尝试构建项目时,我收到此错误:

Undefined symbols for architecture i386:  "realm::BpTreeBase::replace_root(std::__1::unique_ptr<realm::Array,std::__1::default_delete<realm::Array> >)",referenced from:

我也尝试在Watch-Target中使用$(inherited).

我正在使用Xcode 7.3.1和pod版本0.39.0

有任何想法吗?

解决方法 我为Realm得到了同样的错误.
我通过清理cocoapods缓存摆脱了错误“架构i386的未定义符号”:

pod cache clean --allrm -rf ~/library/Caches/CocoaPodspod deintegratepod setuppod install
总结

以上是内存溢出为你收集整理的ios – 带有Realm for WatchOS的架构i386的未定义符号全部内容,希望文章能够帮你解决ios – 带有Realm for WatchOS的架构i386的未定义符号所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1002330.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存