本文介绍了Xcode 警告引用开发第三方库的用户帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用了第三方库 - BugSense.我已将他们的框架添加到我的项目中,对其进行了初始化等,以便一切正常.

I'm using a third party library in my project - BugSense. I've added their framework to my project, initialized it, etc, so that everything works just fine.

然而,每次我构建我的项目时,我都会收到大量(40+)这样的警告:

However, every time I build my project I get a large number (40+) of these warning:

警告:(i386)/Users/genesis/Library/Developer/Xcode/DerivedData/BugSense-fsjysjxoaitvkaexnywkyiktqgrt/Build/Intermediates/BugSense-iOS.build/Debug-iphonesimulator/BugSense-iOS.build/Objects-normal/i386/BugSenseCrashController.o无法打开目标文件

每个都引用不同的 .o 文件,但都在/Users/genesis/Library/Developer/Xcode/DerivedData/BugSense-fsjysjxoaitvkaexnywkyiktqgrt/Build/Intermediates/BugSense-iOS.build/Debug-iphonesimulator/BugSense-iOS.build/Objects-normal/i386/

each referencing a different .o file, but all in /Users/genesis/Library/Developer/Xcode/DerivedData/BugSense-fsjysjxoaitvkaexnywkyiktqgrt/Build/Intermediates/BugSense-iOS.build/Debug-iphonesimulator/BugSense-iOS.build/Objects-normal/i386/

问题是我的机器上没有创世"帐户,所以我怀疑它正在从那个库中提取那个价值,但我终生找不到在哪里.

The thing is I don't have a "genesis" account on my machine, so I suspect it's pulling that value from that library, but for the life of me can't find where.

感谢任何修复/删除此警告的帮助.

Any help fixing / removing this warning is appreciated.

谢谢.

推荐答案

如果在实际生成框架二进制文件的捆绑目标上设置 GCC_GENERATE_DEBUGGING_SYMBOLS = NOBundle(不是运行 LIPO 的 Run Script 目标),您的问题应该会消失.

If you set GCC_GENERATE_DEBUGGING_SYMBOLS = NO on the bundle target that actually generates your framework binary & Bundle (not the Run Script target that runs LIPO), your problem should go away.

参考:http://www.cocoanetics.com/2010/05/making-your-own-iphone-frameworks-in-xcode/#comment-2376

这篇关于Xcode 警告引用开发第三方库的用户帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-15 05:37