CocoaPods集成问题:dyld:库未加载:@ rpath/Bolts.framework/Bolts [英] CocoaPods integration problems: dyld: Library not loaded: @rpath/Bolts.framework/Bolts

查看:100
本文介绍了CocoaPods集成问题:dyld:库未加载:@ rpath/Bolts.framework/Bolts的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道差不多有1000个这样的问题,但是我已经尝试了所有其他问题的答案,没有人可以帮助我.

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.

我正在Swift 2.0中创建一个与cocoapods一起使用的应用程序.在我的Podfile中,我有:

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:未加载库:@ rpath/Bolts.framework/Bolts
引用自:...
原因:未找到合适的图像.
确实找到了... ...(lldb)

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

然后,我尝试了所有操作,例如删除并再次添加Pod,创建新项目,分解并重新安装cocoapods ... 每次遇到相同的错误时,如果我远程执行Bolts.framework,则在另一个框架上收到错误. 我该怎么办?

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.该应用程序不仅在设备上还没有在模拟器中运行.

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

推荐答案

我已经解决了!我尝试了所有操作,但后来我记得问题也应该出在对项目签名的证书上,并在终端中运行以下代码行:

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!

这篇关于CocoaPods集成问题:dyld:库未加载:@ rpath/Bolts.framework/Bolts的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆