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