dyld: Library not loaded with cocoapods 0.37 and Xcode 6.3

前端 未结 7 714
礼貌的吻别
礼貌的吻别 2020-12-24 03:17

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

dyld: Library not loaded: @rpath/Bolts.framework/Bolts Referenced from: /private/var/mobile/Containers/Bun

7条回答
  •  清酒与你
    2020-12-24 03:36

    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.

提交回复
热议问题