库搜索路径随机删除

时间:2014-04-16 05:40:22

标签: ios xcode

我有一个工作正常并正在编译的项目。当我将Google广告SDK更新为6.8.0

我的图书馆路径开始疯狂,它说Testflight库搜索路径丢失,当我甚至没有触摸它。 我会重新添加路径,没有,同样的错误,删除文件,会导致Google SDK和Flurry库搜索路径丢失时出​​错。

然而,我可以通过将.libs拖放到“Link Binary with Libraries”来解决这个问题

它会正常工作,直到我关闭Xcode,然后又回来继续工作,每次打开xcode时我都必须重新添加libs到“Link Binary with Libraries”。

这只是一个错误,还是我在这里遗漏了一些东西。

(Xcode 5.1.1)

这是错误

ld: warning: directory not found for option '-L/Users/anthonytaylor/Documents/iOS workspace/London-OnTime/London'
ld: warning: directory not found for option '-LOnTime/GoogleAdMobAdsSdkiOS-6.8.0'
ld: warning: directory not found for option '-LOnTime'
ld: library not found for -lGoogleAdMobAds
clang: error: linker command failed with exit code 1 (use -v to see invocation)

包含xcodeproj的我的文件夹是London-OnTime,包含源代码的文件夹是London OnTime

看起来当xcode启动时,它并没有正确处理名称中的空间。

1 个答案:

答案 0 :(得分:0)

问题是Xcode生成搜索路径的方式,我手动输入它们

"$(SRCROOT)/London OnTime/GoogleAdMobAdsSdkiOS-6.8.0"
"$(SRCROOT)/London OnTime/

并修复了它。