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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 18:11:37  来源:igfitidea点击:

Xcode 7 Warning - directory not found for option - iPhoneSimulator9.0.sdk

xcodexcode7

提问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

  1. Click on your project (targets)
  2. Click onn Build Settings
  3. Use the arrows next to your project name (right above the Basic and All buttons) the change to the Tests target
  4. if the warning is ...for option '-F/... thats Framework Search Paths, delete the stuff there
  5. Clean
  6. Build Go for it.
  1. 单击您的项目(目标)
  2. 单击构建设置
  3. 使用项目名称旁边的箭头(在 Basic 和 All 按钮正上方)更改 Tests 目标
  4. 如果警告是...对于选项'-F/... 那是框架搜索路径,请删除那里的内容
  5. 干净的
  6. 构建 去吧。

回答by Jorge Casariego

I had the same error with Xcode 9.2 and here is my solution:

我在 Xcode 9.2 上遇到了同样的错误,这是我的解决方案:

  1. Click on your project (targets)
  2. Click on Build Settings, Search for “Framework Search Paths”
  3. Under Framework Search Paths, delete the paths and keep the “$(inherited)”.
  4. This might happen when you move the referenced file around.
  1. 单击您的项目(目标)
  2. 点击Build Settings,搜索“Framework Search Paths”
  3. 在 Framework Search Paths 下,删除路径并保留“$(inherited)”。
  4. 当您四处移动引用的文件时,可能会发生这种情况。

This is what the screen looked like before deleting

这是删除前的画面

enter image description here

在此处输入图片说明