【发布时间】:2017-04-09 00:32:57
【问题描述】:
我目前正在使用 Xcode 8.1、cocoa pods 1.2.0.beta.1,并在装有 iOS 10.1 的模拟器上启动我的应用程序。我的应用程序构建得很好,但是在模拟器中启动应用程序后,我收到以下错误:
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
我的 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
我已经尝试取消集成并重新安装我的可可豆荚,将 Pods-XXXXX.framework 更改为可选,禁用 Bitcode,并清理工作区。这些选项(或它们的任何组合)都不起作用。非常感谢任何帮助。
【问题讨论】:
标签: ios objective-c xcode cocoapods rpath