ld:找不到架构x86_64的框架

时间:2022-09-02 15:22:08
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,可能是什么问题?

1 个解决方案

#1


11  

In your podfile, you should include the framework thats causing problems inside the AppTests as well.

在podfile中,您应该包含导致AppTests内部出现问题的框架。

target 'MyApp' do
  pod 'FBSDKCoreKit'
end

target 'MyAppTests' do

 pod 'FBSDKCoreKit'
end

After this:

在这之后:

  • Clean
  • 清洁
  • Delete Derived Data
  • 删除派生数据

#1


11  

In your podfile, you should include the framework thats causing problems inside the AppTests as well.

在podfile中,您应该包含导致AppTests内部出现问题的框架。

target 'MyApp' do
  pod 'FBSDKCoreKit'
end

target 'MyAppTests' do

 pod 'FBSDKCoreKit'
end

After this:

在这之后:

  • Clean
  • 清洁
  • Delete Derived Data
  • 删除派生数据