ios - 找不到选项 '-F/Applications/Xcode.app/../Developer/Library/Frameworks' ld : file not found: 的目录

标签 ios objective-c xcode swift

我不确定为什么,但我的项目突然无法构建并显示:

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/Developer/Library/Frameworks'
ld: file not found: /Users/../Library/Developer/Xcode/DerivedData/inline-ios-axberuiwgueuitfzxttaoekgigob/Build/Products/Debug-iphonesimulator/myapp-ios.app/my-app
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我该如何调查?

我最近从测试文件夹中删除了一个文件

bundle id 已于一天前更改

更新

我在SO的另一个线程中看到一个答案,说要删除框架搜索路径下的任何内容。

但是我的已经是空的了

最佳答案

确保检查所有目标。我的主要应用程序目标的 Framework Search Path 已经是空的,但仍然有这个问题。

我在 Github 上发现了一个有这个问题的项目,他们通过删除测试(或可能是测试文件)解决了这个问题。我检查了我的测试目标,发现它仍然有 {SDK-ROOT} 路径。我删除了它,警告消失了。

关于ios - 找不到选项 '-F/Applications/Xcode.app/../Developer/Library/Frameworks' ld : file not found: 的目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35234373/

相关文章:

ios - Xcode 7.3 操作无法完成(LaunchServicesError 错误 0)

ios - 如何保存用户使用 swift 选择的图像?

ios - 呈现 UIViewController 并将数据传回呈现 View

objective-c - 调试器在核心数据保存时停止但没有错误输出

ios - 应用程序在搜索(过滤)NSDictionary 时崩溃

iphone - 如果你可以买两本关于 iOS 开发的书,你会选择哪本?

iphone - 使用滑动导航 View

ios - 无法解析数据 JSON alamofire SwiftyJSON

ios - AVPlayer URL https 与 ATS 的连接被阻止的明文 HTTP

ios - Apple Watch 上的 WCSession 无法正常工作