Library not loaded @rpath/AFNetworking iOS

3k Views Asked by At

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.

2

There are 2 best solutions below

0
On

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.

1
On

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