CocoaPods integration problems: dyld: Library not loaded: @rpath/Bolts.framework/Bolts

孤街浪徒 提交于 2019-12-08 02:50:18

问题


I know that there are almost 1000 questions like this one, but I've tried all the answers on the others and no one could helps me.

I'm creating an app in Swift 2.0 that works with cocoapods. In my podfile I have:

platform :ios, '8.0'
use_frameworks!

target 'TargetName' do

pod 'SinchRTC'
pod 'SinchVerification-Swift'
pod 'Parse'

end

And everything was working fine, at one point I tried to run again the app and I got this error:

dyld: Library not loaded: @rpath/Bolts.framework/Bolts
Referenced from: ...
Reason: no suitable image found.
Did find: ... (lldb)

Then I tried everything like deleting and adding again pods, create a new project, deintegrate and reinstall cocoapods... Everytime I get the same error and if I remote Bolts.framework I get the error on another framework. What should I do?

P.S. The app isn't running also in the simulator, not only on device.


回答1:


I've solved it! I tried everything but then I remember that the problem should also be the certificate signing my project and I run this lines in the terminal:

rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/com.apple.dt.Xcode

This worked and the app is running right now on my device!



来源:https://stackoverflow.com/questions/34860306/cocoapods-integration-problems-dyld-library-not-loaded-rpath-bolts-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!