问题
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