xcode ld:找不到架构 x86_64 的框架
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40615168/
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
ld: framework not found for architecture x86_64
提问by Esqarrouth
ld: framework not found QorumLogs for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm getting this in my test files which used to work for months now. This is my header in the file:
我在我的测试文件中得到了这个,它曾经可以工作数月。这是我在文件中的标题:
import XCTest
import QorumLogs
@testable import MyAppName
The only thing I've changed recently is, update cocoapods, (QorumLogs is a pod), then installed Smooch.io pod, then for the first time added objective-c bridging header, created some Obj-C files and imported smooch.io framework.
我最近唯一改变的是,更新cocoapods,(QorumLogs是一个pod),然后安装了Smooch.io pod,然后第一次添加了objective-c桥接头,创建了一些Obj-C文件并导入了smooch.io框架。
Using Xcode 7.3, what can be the problem?
使用 Xcode 7.3,会出现什么问题?
回答by Esqarrouth
In your podfile, you should include the framework thats causing problems inside the AppTests as well.
在您的 podfile 中,您还应该包含导致 AppTest 内部出现问题的框架。
target 'MyApp' do
pod 'FBSDKCoreKit'
end
target 'MyAppTests' do
pod 'FBSDKCoreKit'
end
After this:
在这之后:
- Clean
- Delete Derived Data
- 干净的
- 删除派生数据