好的,我之前从未遇到过此问题,但遇到与此链接相同的问题我尝试了他们的解决方案:CocoaPods integration problems: dyld: Library not loaded: @rpath/Bolts.framework/Bolts
但它没有用。我通过Pods安装了Parse并且它运行但在此螺栓错误之后不久就崩溃了:
dyld: Library not loaded: @rpath/Bolts.framework/Bolts
Referenced from: /Users/apple/Library/Developer/CoreSimulator/Devices/67D47436-3F47-41E0-A6D6-FEE0DEB3447E/data/Containers/Bundle/Application/F54B120F-D1EE-496C-AC73-36D5B7561DD2/Anchorpoint.app/PlugIns/MessagesExtension.appex/MessagesExtension
Reason: image not found
我的pod文件看起来像 - 我按照指示定位了多个目标:
# platform :ios, '9.0'
use_frameworks!
def shared_pods
pod 'Parse'
end
target 'Anchorpoint' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Anchorpoint
shared_pods
end
target 'MessagesExtension' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MessagesExtension
shared_pods
end
它是一个iMessage扩展,但我清楚地定位了扩展和主要目标。这是崩溃在ht模拟器中,我也尝试过去链接库并在那里添加螺栓,并根据某人的建议将状态更改为可选:
我不知道这里还能做什么。为什么它找不到螺栓? 编辑: