48 个建筑重复符号的错误 x86_64
Error of 48 duplicate symbols for architecture x86_64
我有 error:48 个重复的建筑符号 x86_64:
当我按照教程进行操作时:https://firebase.google.com/docs/cloud-messaging/ios/client#analytics-enabled, after install required libraries in cocoapods, it started to pop me this error message:
然后我按照我的讨论在这个 Whosebug 讨论中删除 other linker flags
中的 -ObjeC
:Duplicate symbols for architecture x86_64 under Xcode, but I did it in my project IFTTT rather than pods, should I do remove -ObjeC in other in Pods or my project? I did it on my project page, and after removing it, it still displays -ObjeC
on the setting page, and I still got the same error message:
有谁知道为什么?是的,我一团糟,有人可以帮我解决这个问题吗?谢谢!
更新:
我在我的案例中提出了解决方案,我之前安装了 cocoapods 和一些库,我正在尝试设置 firebase,所以如果你在安装 firebase 时遇到这些问题,一定要参考这个 post。我按照下面的答案,在此之前,我添加了:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = "NO"
end
end
end
然后执行以下命令:
$ sudo gem install cocoapods-deintegrate cocoapods-clean
$ pod deintegrate
$ pod cache clean --all
$ pod install
如答案所示,然后一切正常,当有 file.c 和文件 2.c 时,我确实删除了一些重复文件,但我没有删除所有尝试,我只是做了什么我已经解决了这个问题,希望这对未来的开发人员有帮助,不要惊慌失措!相信自己和 Whosebug 的其他人!
有时我尝试更新 pods 时会发生这种情况。添加了 pods 中某些文件的副本。它看起来像这样:
Firebase.h
Firebase 2.h
您可以只检查所有 pods 您安装的并删除重复项,或者您可以分解并重新安装。
$ sudo gem install cocoapods-deintegrate cocoapods-clean
$ pod deintegrate
$ pod cache clean --all
$ pod install
我有 error:48 个重复的建筑符号 x86_64:other linker flags
中的 -ObjeC
:Duplicate symbols for architecture x86_64 under Xcode, but I did it in my project IFTTT rather than pods, should I do remove -ObjeC in other in Pods or my project? I did it on my project page, and after removing it, it still displays -ObjeC
on the setting page, and I still got the same error message:
更新: 我在我的案例中提出了解决方案,我之前安装了 cocoapods 和一些库,我正在尝试设置 firebase,所以如果你在安装 firebase 时遇到这些问题,一定要参考这个 post。我按照下面的答案,在此之前,我添加了:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = "NO"
end
end
end
然后执行以下命令:
$ sudo gem install cocoapods-deintegrate cocoapods-clean
$ pod deintegrate
$ pod cache clean --all
$ pod install
如答案所示,然后一切正常,当有 file.c 和文件 2.c 时,我确实删除了一些重复文件,但我没有删除所有尝试,我只是做了什么我已经解决了这个问题,希望这对未来的开发人员有帮助,不要惊慌失措!相信自己和 Whosebug 的其他人!
有时我尝试更新 pods 时会发生这种情况。添加了 pods 中某些文件的副本。它看起来像这样:
Firebase.h
Firebase 2.h
您可以只检查所有 pods 您安装的并删除重复项,或者您可以分解并重新安装。
$ sudo gem install cocoapods-deintegrate cocoapods-clean
$ pod deintegrate
$ pod cache clean --all
$ pod install