Xcode 7 警告 - 找不到选项的目录 - iPhoneSimulator9.0.sdk
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32684130/
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
Xcode 7 Warning - directory not found for option - iPhoneSimulator9.0.sdk
提问by asafbar
I have got this warning when upgrade my project:
升级我的项目时收到此警告:
directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'
找不到选项“-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks”的目录
How can I fix this issue?
我该如何解决这个问题?
I have cleaned the project but the warning still occurs.
我已经清理了项目,但仍然出现警告。
回答by Ecchi-Alex
I recently upgraded my project as well and ran into the same thing. This fixed it for me:
我最近也升级了我的项目并遇到了同样的事情。这为我修复了它:
https://stackoverflow.com/a/32620919/3279011
https://stackoverflow.com/a/32620919/3279011
Note that you need to edit the properties of the test-project, not your main one (that's what took me a while to process).
请注意,您需要编辑测试项目的属性,而不是您的主要属性(这就是我花了一段时间来处理的)。
回答by P.J.Radadiya
- Click on your project (targets)
- Click onn Build Settings
- Use the arrows next to your project name (right above the Basic and All buttons) the change to the Tests target
- if the warning is ...for option '-F/... thats Framework Search Paths, delete the stuff there
- Clean
- Build Go for it.
- 单击您的项目(目标)
- 单击构建设置
- 使用项目名称旁边的箭头(在 Basic 和 All 按钮正上方)更改 Tests 目标
- 如果警告是...对于选项'-F/... 那是框架搜索路径,请删除那里的内容
- 干净的
- 构建 去吧。
回答by Jorge Casariego
I had the same error with Xcode 9.2 and here is my solution:
我在 Xcode 9.2 上遇到了同样的错误,这是我的解决方案:
- Click on your project (targets)
- Click on Build Settings, Search for “Framework Search Paths”
- Under Framework Search Paths, delete the paths and keep the “$(inherited)”.
- This might happen when you move the referenced file around.
- 单击您的项目(目标)
- 点击Build Settings,搜索“Framework Search Paths”
- 在 Framework Search Paths 下,删除路径并保留“$(inherited)”。
- 当您四处移动引用的文件时,可能会发生这种情况。
This is what the screen looked like before deleting
这是删除前的画面