dyld:未加载库,应用程序需要AFNetworking 2.0.0,但提供版本1.0.0 [英] dyld: Library not loaded, app requires AFNetworking 2.0.0 but provides version 1.0.0

查看:94
本文介绍了dyld:未加载库,应用程序需要AFNetworking 2.0.0,但提供版本1.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到此错误,无法解决。我尝试清洁并再次运行,删除所有吊舱并重新安装。

I am running into this error and cannot solve it. I have tried cleaning and running again, deleting all pods and installing again. Any hints?

dyld: Library not loaded: @rpath/AFNetworking.framework/AFNetworking
  Referenced from: /private/var/mobile/Containers/Bundle/Application/72522B8C-7F27-41BD-A9E4-FDB2F63F1F5E/MyApp.app/MyApp
  Reason: Incompatible library version: MyApp requires version 2.0.0 or later, but AFNetworking provides version 1.0.0


推荐答案

我遇到了这个问题并尝试了解决方法在此处找到 https://github.com/CocoaPods/CocoaPods/issues/3903 -做一个清理构建文件夹(产品菜单->按住 alt 键,然后 Clean 现在应该说清理生成文件夹),我也做了 pod安装,但我认为这并不重要。

I had this problem and tried a solution I found here https://github.com/CocoaPods/CocoaPods/issues/3903 - do a "Clean Build Folder" (Product menu -> hold down alt key and Clean should now say Clean Build Folder) and I also did a pod install but I don't think that matters.

我想删除派生数据文件夹也可以解决该问题。

I guess deleting the derived data folder also fixes the issue.

这篇关于dyld:未加载库,应用程序需要AFNetworking 2.0.0,但提供版本1.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆