dyld: Library not loaded, app requires AFNetworking 2.0.0 but provides version 1.0.0

半世苍凉 提交于 2019-12-06 18:45:52

问题


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

回答1:


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.



来源:https://stackoverflow.com/questions/31750603/dyld-library-not-loaded-app-requires-afnetworking-2-0-0-but-provides-version-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!