source 'https://github.com/CocoaPods/Specs.git'platform :ios,'7.0'pod 'AFNetworking'pod 'ODSAccordionVIEw','0.4.4'pod 'IQKeyboardManager'pod 'NYXImagesKit',:git => 'https://github.com/Nyx0uf/NYXImagesKit.git'pod 'PEPhotoCropEditor'pod 'CocoaAsyncSocket'pod 'PKRevealController'pod 'Haneke','~> 1.0'pod 'MBProgressHUD','~> 0.9.1'pod 'Radiobutton'
Everythig已经很好地工作了很长时间,但是现在,当我更新我的pods(pod更新)时,这3个pod已被提升:
> AFNetworking
> CocoaAsyncSocket
> IQKeyboardManager
在那之后,没有任何作品了.
duplicate symbol _OBJC_IVAR_$_AFhttpRequestoperation._responseSerializer in:/Users/myuser/library/Developer/Xcode/DerivedData/MyProject-emjexnnjljambodthokzwpwcddhz/Build/Products/DeBUG-iphonesimulator/libPods-AFNetworking.a(AFhttpRequestoperation.o)/Users/myuser/library/Developer/Xcode/DerivedData/MyProject-emjexnnjljambodthokzwpwcddhz/Build/Products/DeBUG-iphonesimulator/libAFNetworking.a(AFhttpRequestoperation.o)... (661 times the same error but pointing to different duplicated files)ld: 661 duplicate symbols for architecture i386clang: error: linker command Failed with exit code 1 (use -v to see invocation)
有任何想法吗?
编辑:执行下面显示的解决方案后,我的项目只编译iPad Air,我不能再存档,我仍然得到相同的错误…
解决方法 我使用’手动重命名所有符号’的方法.我遇到了重复的符号_OBJC_MetaCLASS _ $_ PodsDummy_Pods,所以我在Podfile中添加了post_install以避免重复的符号.将您的pod文件内容替换为“手动重命名所有符号”
source 'https://github.com/CocoaPods/Specs.git'platform :ios,'7.0'post_install do |installer_representation| installer_representation.project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['GCC_PREPROCESSOR_DEFinitioNS'] = '$(inherited),PodsDummy_Pods=SomeOthernamePodsDummy_Pods' end endendpod 'AFNetworking'pod 'ODSAccordionVIEw','~> 0.9.1'pod 'Radiobutton'
编辑:
从项目中删除以下pod项
1.Pods文件夹
2.Podfile.lock
3.Projectname.xcworkspace
然后再次安装pod
This hook allows you to make any last changes to the generated Xcode
project before it is written to disk or any other tasks you might
want to perform.
参考 –
1. https://developerinsider.co/cocoapods-remove-duplicate-symbols-errors/
2. http://guides.cocoapods.org/syntax/podfile.html#post_install
以上是内存溢出为你收集整理的ios – xcode在更新可可豆荚后出现体系结构错误的重复符号全部内容,希望文章能够帮你解决ios – xcode在更新可可豆荚后出现体系结构错误的重复符号所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)