简体   繁体   English

Cocoapods dyld:未加载库@rpath未找到图像

[英]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.

相关问题 dyld:库未加载:@rpath..原因:找不到图像 - dyld: Library not loaded: @rpath .. reason: image not found dyld:库未加载:@rpath/Alamofire.framework/Alamofire 图像未找到 - dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire image not found dyld:库未加载:@rpath/libswiftAVFoundation.dylib 原因:找不到图像 - dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib Reason: image not found dyld:库未加载:@ rpath / Almofire.framework找不到图像 - dyld: Library not loaded: @rpath/Almofire.framework Image not found dyld:库未加载:@rpath/libswiftCore.dylib / 找不到图像 - dyld: Library not loaded: @rpath/libswiftCore.dylib / Image not found dyld:库未加载:@rpath/Alamofire.framework/Versions/A/Alamofire 原因:找不到图像 - dyld: Library not loaded: @rpath/Alamofire.framework/Versions/A/Alamofire Reason: image not found dyld:库未加载:@ rpath / Alamofire.framework / Alamofire原因:找不到图像 - dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire Reason: image not found dyld:库未加载:@ rpath / libswiftCoreAudio.dylib引用自: <Framework> 原因:找不到图片 - dyld: Library not loaded: @rpath/libswiftCoreAudio.dylib Referenced from:<Framework> Reason: image not found dyld:库未加载:@rpath/ ...原因:找不到合适的图像。 更新设备至最新更新 13.3.1 - dyld: Library not loaded: @rpath/ ... Reason: no suitable image found. updated device to latest update 13.3.1 dyld:未加载库:@ rpath / libswiftCoreLocation.dyli - dyld: Library not loaded: @rpath/libswiftCoreLocation.dyli
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM