Library not loaded @rpath/AFNetworking iOS

谁说我不能喝 提交于 2020-01-03 15:55:38

问题


I've facing very strange issue while installing my app onto device using custom (my own created) framework.

MyFramework uses AFNetworking, Dropbox and Google drive from pods, and I just dragged MyFramework into my app and just build(which is fine) but on installation this give me error

dyld: Library not loaded: @rpath/AFNetworking.framework/AFNetworking Referenced from: /private/var/containers.../MyFramework.framework/MyFramework Reason: image not found

MyApp has nothing just new app and added MyFramework into Embedded Binaries.

I googled and found many many solution (mostly say that delete drive data or Clean build). Even this https://github.com/AFNetworking/AFNetworking/issues/3986 own issue in github AFNetworking library, tried but no remedy.


回答1:


I found solution.

Find your Target --> Build Phases --> Add New Copy Files Phase -->Choose Destination Option,Frameworks --> Click add AFNetworking.framework --> Done.

Hope its useful.




回答2:


Maybe you can try to remove AFNetworking and install again, if you are using CocoaPods.



来源:https://stackoverflow.com/questions/46811024/library-not-loaded-rpath-afnetworking-ios

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