Francesco
Francesco

Reputation: 169

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

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.

Upvotes: 2

Views: 1122

Answers (1)

Francesco
Francesco

Reputation: 169

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!

Upvotes: 1

Related Questions