警告:更新到 xcode 7 后找不到选项的目录

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32630967/
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-15 07:50:17  来源:igfitidea点击:

warning: directory not found for option after update to xcode 7

xcodeswift

提问by Yunfei Lu

I have totally no idea about what does it mean: 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/的目录开发人员/库/框架'

回答by JasonH

For me it ended up being in the TestTarget Build Settings.

对我来说,它最终出现在 TestTarget 构建设置中。

  1. Go to Build Settings
  2. Click the up/down arrows next to your project name (above the Basic/All buttons) to select your Test Target
  3. In the search bar, type in Search Paths
  4. Delete any conflicting paths under the Framework Search Pathsor Library Search Paths
  5. Clean
  6. Build
  1. 转到构建设置
  2. 单击项目名称旁边的向上/向下箭头(基本/全部按钮上方)以选择您的测试目标
  3. 在搜索栏中,输入搜索路径
  4. 删除Framework Search PathsLibrary Search Paths下的所有冲突路径
  5. 干净的
  6. 建造

In my case, I had a path under Framework Search Pathspointing at Developer/Library/Frameworks

就我而言,我在Framework Search Paths下有一条路径指向Developer/Library/Frameworks

回答by Nix

Go to Project Settings, and delete/remove excess framework paths that you don't need.

转到项目设置,并删除/删除不需要的多余框架路径。

or Click on projects CLick on build settings and then under library search paths, delete the paths.

或单击项目单击构建设置,然后在库搜索路径下,删除路径。

UPDATE:

更新:

if you cannot find it, then click on 'Find', then 'Find in Project', search 'path', you may then get the result, from there select framework search paths. you will see framework search paths. I hope this helps.

如果找不到,则单击“查找”,然后单击“在项目中查找”,搜索“路径”,然后您可能会得到结果,从那里选择框架搜索路径。您将看到框架搜索路径。我希望这有帮助。

回答by warren

I meet a same problem.And I resolve it by https://forums.developer.apple.com/thread/3729

我遇到了同样的问题。我通过https://forums.developer.apple.com/thread/3729解决了它

You can click on testsTarget and click build settings and open the Framework Search Paths to remove the warning Path.

您可以单击 testsTarget 并单击构建设置并打开框架搜索路径以删除警告路径。

回答by Gustavo Feliciano

In my project I was using Carthage to implement the Pod. The problem I was having is that I had not yet installed Carthage on my machine and it was necessary to give Build

在我的项目中,我使用 Carthage 来实现 Pod。我遇到的问题是我还没有在我的机器上安装 Carthage,有必要给 Build

$ brew install carthage
$ carthage build

回答by Safo K. Frimpong

What is working for me is:

对我有用的是:

  1. Go to ' General ' in Xcode and click 'Embedded Binaries'

  2. Add the .dylib and .a file to your project

  3. Lastly, goto 'Build Settings' search for 'Other Linker Flags' ,then copy your library commad line argument and add it there.

  1. 转到 Xcode 中的“General”并单击“Embedded Binaries”

  2. 将 .dylib 和 .a 文件添加到您的项目中

  3. 最后,转到“构建设置”搜索“其他链接器标志”,然后复制您的库命令行参数并将其添加到那里。