如何修复找不到选项-F错误的目录 [英] How do I fix the directory not found for option -F error
问题描述
我收到以下错误:
ld:警告:找不到选项的目录'-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'
ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'
如何在不删除框架搜索路径的情况下解决此问题?我需要AdMob框架的框架搜索路径.
How do I fix this without removing the framework search path? I need the framework search path for my AdMob framework.
推荐答案
我已修复它!由于我的项目是从以前版本的Xcode迁移而来的,因此我不得不清除FrameworkSearchPath中的值,该值位于SearchPaths下的Build Settings中.
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.
旧值类似于 $(继承)$(PROJECT_DIR)/MyProject
,而我只是删除了它.
The old value was something like $(inherited) $(PROJECT_DIR)/MyProject
and I simply deleted it.
这篇关于如何修复找不到选项-F错误的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!