xcode 如何修复找不到选项 -F 错误的目录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32676490/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I fix the directory not found for option -F error
提问by MGames
I'm receiving the following error:
我收到以下错误:
ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'
ld:警告:找不到选项“-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks”的目录
How do I fix this without removing the framework search path? I need the framework search path for my AdMob framework.
如何在不删除框架搜索路径的情况下解决此问题?我需要 AdMob 框架的框架搜索路径。
回答by MGames
I fixed it! Since my project is migrated from a previous version of Xcode, I had to clear the value in Framework Search Path, which is in Build Settings under Search Paths.
我修好了它!由于我的项目是从先前版本的 Xcode 迁移而来的,因此我必须清除 Framework Search Path 中的值,该值位于 Search Paths 下的 Build Settings 中。
The old value was something like $(inherited) $(PROJECT_DIR)/MyProject
and I simply deleted it.
旧值类似于$(inherited) $(PROJECT_DIR)/MyProject
,我只是将其删除。