5

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.

James Z
  • 12,209
  • 10
  • 24
  • 44
Aleem
  • 3,173
  • 5
  • 33
  • 71

2 Answers2

-1

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

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
  • From Review: This post does not seem to provide a [quality answer](https://stackoverflow.com/help/how-to-answer) to the question. Please either edit your answer and improve it, or just post it as a comment to the question. – sɐunıɔןɐqɐp Oct 09 '18 at 06:46
-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.

Vladyslav Panchenko
  • 1,517
  • 1
  • 19
  • 23