dyld:库没有加载cocoapods 0.37和Xcode 6.3 [英] dyld: Library not loaded with cocoapods 0.37 and Xcode 6.3

查看:168
本文介绍了dyld:库没有加载cocoapods 0.37和Xcode 6.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读有关错误的所有问题:



dyld:未加载库:@ rpath / Bolts.framework / Bolts
引用自:/private/var/mobile/Containers/Bundle/Application/1542F906-CCE1-4181-AC7C-B5E3EE50E7D7/eBikeMotion.app/eBikeMotion
原因:找不到合适的图像。找到:



这使我的应用程序无法在真实设备中运行(但它在模拟器中运行时没有任何问题。
直到某一点我认为这是我正在安装的框架的一个问题,但在手动安装后抛出错误的原始版本,Alamofire和下一个抛出错误的框架是按字母顺序排列的下一个框架(螺栓,正如你在代码片段中看到的那样)
所以我得出的结论确实是CocoaPods产生了这些错误。我已经得到了干净安装的最后一个版本(0.37),我试过创建一个新项目,我已经尝试了所有提出的解决方案,没有任何运气,所以我必须打开一个问题,希望有人可以帮助我。



<问候。

解决方案

重新安装整个系统并找不到解决方案后,我发现有些为CocoaPods构建强制阶段正确地丢失了。



此问题的解决方案适用于下一步:


  1. 解体cocoapods项目(您可以使用 sudo gem install cocoapods-deintegrate 安装该工具)。

cocoapods-在Github上解体


  1. 修改你的Podfile:



    您应该定义目标链接 link_with'ProjectName'



    您应该定义你的pod的目标: target'ProjectName'do [pods here] end


  2. 使用 pod install进行安装


  3. 执行此操作后,转到XCode并检查以下设置:



    在项目设置中的配置下,检查在Debug和Release中是否有一个名为<$ c的配置集$ c> Pods-ProjectName。[debug | release]



    进入你的目标,在Build Phases下你应该有三个新的阶段应命名为: Check Pods Manifest Embed Pods Frameworks 复制Pod资源


  4. 制作一个干净的,然后构建,然后进入你的设备。


就是这样。


I've been reading all the issues about the error:

dyld: Library not loaded: @rpath/Bolts.framework/Bolts Referenced from: /private/var/mobile/Containers/Bundle/Application/1542F906-CCE1-4181-AC7C-B5E3EE50E7D7/eBikeMotion.app/eBikeMotion Reason: no suitable image found. Did find:

Which makes my application unable to run in a real device (but it runs without any problem in the simulator. Until certain point I thought that it was an issue with the frameworks I was installing, but after installing manually the original one that was throwing the error, Alamofire, and the next Framework throwing the error was the next one in alphabetical order (Bolts, as you can see in the code snippet) So I've reached the conclusion that is indeed CocoaPods which is producing these errors. I've got the last version (0.37) with a clean install, Iv'e tried to create a new project, I've tried all the proposed solutions to this issue without any luck, so I have to open an issue, with the hope that someone can help me.

Regards.

解决方案

After reinstalling the whole system and don't finding a solution, I've found that some of the Build Phases mandatory for CocoaPods to run properly were missing.

The solution for this problem goes for the next steps:

  1. Deintegrate the cocoapods project (you can install the tool with sudo gem install cocoapods-deintegrate).

cocoapods-deintegrate on Github

  1. Modify your Podfile:

    You should define your target linking with link_with 'ProjectName'.

    You should define the target for your pods: target 'ProjectName' do [pods here] end.

  2. Make an install with pod install

  3. After doing this, go to XCode and check the following settings:

    Into project settings, under "Configurations" check that in Debug and Release you've got a Configuration set named Pods-ProjectName.[debug|release]

    Into your target, under "Build Phases" you should have three new phases that should be named: Check Pods Manifest, Embed Pods Frameworks and Copy Pods Resources.

  4. Make a clean, then build, then run into your device.

That's it.

这篇关于dyld:库没有加载cocoapods 0.37和Xcode 6.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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