正如标题所说,我收到以下错误:
显示最近的消息 ld: framework not found KIF
错误:无法解析“/Users/[User]/Library/Developer/Xcode/DerivedData/[App]/Build/Products/Debug-iphoneos/[App].app/PlugIns/[AppTests].xctest/”的调试映射[AppTests]":没有这样的文件或目录
奇怪的是,上述情况仅发生在真实设备上,并且仅在我测试应用程序时发生。
我使用 swift 3 和 Xcode 8,这是我的Podfile
:
platform :ios, '10.0'
use_frameworks!
target 'App' do
pod 'Alamofire', '~> 4.4'
pod 'KeychainAccess'
pod 'Kingfisher', '~> 3.0'
pod 'ReactiveCocoa', '~> 6.0'
pod 'SwiftyBeaver'
pod 'SwiftyJSON'
target 'AppTests' do
inherit! :search_paths
pod 'KIF'
pod 'Nimble', '~> 7.0.1', :inhibit_warnings => true
pod 'OHHTTPStubs'
pod 'OHHTTPStubs/Swift'
end
target 'AppUITests' do
inherit! :search_paths
pod 'Nimble', '~> 7.0.1', :inhibit_warnings => true
pod 'OHHTTPStubs'
pod 'OHHTTPStubs/Swift'
end
end