[英]Cocoapods dyld: Library not loaded @rpath Image not found
I am currently using Xcode 8.1, cocoa pods 1.2.0.beta.1, and launching my app on a simulator with iOS 10.1. 我目前正在使用Xcode 8.1,可可豆荚1.2.0.beta.1,并在iOS 10.1的模拟器上启动我的应用程序。 My app builds just fine, however after launching the app in a simulator, I receive the following error:
我的应用程序构建得很好,但是在模拟器中启动应用程序后,我收到以下错误:
dyld: Library not loaded: @rpath/AFNetworking.framework/AFNetworking
Referenced from: /Users/XXXXX/Library/Developer/CoreSimulator/Devices/XXXXX/data/Containers/Bundle/Application/XXXXX/XXXXX.app/XXXXX
Reason: image not found
My Podfile is: 我的Podfile是:
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
platform :ios, '8.0'
target "XXXXX" do
platform :ios, '8.0'
use_frameworks!
pod 'AFNetworking'
...
end
post_install do | installer |
require 'fileutils'
FileUtils.cp_r('Pods/Target Support Files/Pods-XXXXX/Pods-XXXXX-acknowledgements.plist', 'Pods-Acknowledgements.plist', :remove_desve_destination => true)
end
I have already tried de-integrating and re-installing my cocoa pods, changing the Pods-XXXXX.framework to optional, disabling Bitcode, and cleaning the workspace. 我已经尝试过去集成并重新安装我的可可豆荚,将Pods-XXXXX.framework更改为可选,禁用Bitcode,以及清理工作区。 None of those options (or any combination of them) has worked.
这些选项(或它们的任意组合)都没有奏效。 Any help is much appreciated.
任何帮助深表感谢。
For those who find this issue in the future, it has been solved by cleaning the build folder by doing Option+Shift+Command+K. 对于将来发现此问题的用户,可以通过执行Option + Shift + Command + K清除构建文件夹来解决此问题。 This solves the issue.
这解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.