Xcode 7 库搜索路径警告 [英] Xcode 7 Library search path warning
问题描述
这是它显示的警告:
找不到选项-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks"的目录"
directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks' "
谁能帮忙解决这个警告?
Can anyone help resolve the warning?
推荐答案
我就是这样解决这个问题的
进一步将我的 Xcode 项目从 Xcode 6.4 迁移到 Xcode 7,我收到了以下 测试目标 的警告消息(编译后):
This is how I fixed this problem
Further to a migration of my Xcode project, from Xcode 6.4 to Xcode 7, I get the warning message below (after compilation) for the Test target :
directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'
实际上我在比较新项目和旧项目时发现了一些东西......
Actually I found something when comparing a new project vs an older one...
在旧项目中,警告仅由我的项目的测试目标产生.在'搜索路径'下,我发现它在'框架搜索路径'下包含两个项目:
In the old project, the warning was only being produced by the test target of my projects. Under 'Search Paths', I found it was including two items under 'Framework Search Paths':
$(SDKROOT)/Developer/Library/Frameworks
$(inherited)
新项目将框架搜索路径"留空.
在我的旧项目中删除这些条目然后删除了警告.
注意事项:
我没有详尽地比较设置,因此可能存在其他差异.
I have not exhaustively compared settings, so there may be additional differences.
另外,如果有一天您再次遇到以下两个警告消息之一,请记住您必须这样做:如果警告是针对选项 '-L/...'
即图书馆搜索路径,删除那里的东西.但是,如果警告是针对选项 '-F/...'
即框架搜索路径,请删除那里的内容.
Also, just in case if one day you re-encounter one of the two following warning messages, just remember that you will have to do that: if the warning is for option '-L/...'
that is Library Search Paths, delete the stuff there. However if the warning is for option '-F/...'
that is Framework Search Paths, delete the stuff there.
这篇关于Xcode 7 库搜索路径警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!