CocoaPods compilation Error in Xcode 7 dyld:library not loaded: @rpath/pods.framework/pods

Source: Internet
Author: User

Problem symptoms and resolution

Create a Swift project in Xcode 7 Beta 3 (7a152u) and use CocoaPods for dependency management, and compile with the following error:

Dyld:library not loaded: @rpath/pods.framework/Pods  /private/var/mobile/containers/bundle/ application/26b91138-7483-40b0-9be6-d27072472895/appname.app/AppName  

This error is only encountered on the real machine test, the simulator is not a problem.

The solution is to click on Target's build Settings, switch to all, search for Bitcode, and set it to No to compile the pass.

Bitcode Introduction

When the project is compiled, Xcode compiles the project with Clang or SWIFTC and then gives LLVM to create the binary package to fit the virtual machine (X86/64) and the Real Machine (arm6/arm7/arm7s/arm64) environment. Such a binary package is called "Fat Binary package" (Fat binary).

If Bitcode is enabled, then the process of generating a "fat binary package" is removed, and LLVM only generates an intermediate language Bitcode package. There are many benefits to doing so, but it is not possible to run in all environments, so the next step in packing is always someone who needs to do the--app store to do the job. This makes the package smaller, runs faster, and is part of the iOS9 "slimming function". In the future, all WatchOS applications will force Bitcode submissions, but IOS apps do not yet have this requirement.

Reference

APP thinning (IOS, WatchOS):
https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/ Appthinning/appthinning.html

Fat Binary:
Https://en.wikipedia.org/wiki/Fat_binary#Apple.27s_Universal_binary

LLVM:
Https://zh.wikipedia.org/wiki/LLVM

Impact of Xcode build Options "Enable Bitcode" yes/no:
Http://stackoverflow.com/questions/31088618/impact-of-xcode-build-options-enable-bitcode-yes-no

Xcode 7 dyld:library not loaded image not found:
https://github.com/CocoaPods/CocoaPods/issues/3661

Dyld:library not loaded: @rpath/pods.framework/pods
https://github.com/CocoaPods/CocoaPods/issues/3586

CocoaPods compilation Error in Xcode 7 dyld:library not loaded: @rpath/pods.framework/pods

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.