4

I have a framework that have Pods and my main project too.

Error:

dyld: Library not loaded: @rpath/Alamofire.framework/Alamofire
  Referenced from: /Users/station7/Library/Developer/CoreSimulator/Devices/472E34A1-3D59-4C1F-90A3-3F3FF2998CC4/data/Containers/Bundle/Application/5E4E1D98-6451-4F1D-8E90-A032029D634D/MyApp.app/Frameworks/requestMyApp.framework/requestMyApp
  Reason: image not found
  • Alamofire.framework exist in framework pods But no in the main project.

If the framework exist in the main project the error never appear. But is in-necessary have Alamofire in both projects in podfile, Considering that the main project does not use at all the Alamofire.

i'm following this post: source 1 and source 2

I'm trying all of steps that are sources but nothing works.

enter image description here enter image description here enter image description here enter image description here enter image description here

Community
  • 1
  • 1
jose920405
  • 7,607
  • 3
  • 36
  • 64

1 Answers1

0

The Framework uses post but put it into the Main Project, seems also need Alamofire in pods. That is, to fix must be Alamofire in both projects.

jose920405
  • 7,607
  • 3
  • 36
  • 64
  • Is this the only one solution? since I don't want to include the Alamofire in my Main project. – DàChún Sep 10 '17 at 10:00
  • I'm sorry, but it was the only thing that worked for me. If you find another way, do not hesitate to comment me, please. – jose920405 Sep 11 '17 at 13:00
  • It is umbrella framework. found solutions here: https://stackoverflow.com/questions/41397746/umbrella-framework/41815368#41815368 and https://stackoverflow.com/questions/27868259/embedding-a-framework-within-a-framework-ios-8, but umbrella framework is discouraged by App: https://stackoverflow.com/questions/7365578/why-are-umbrella-frameworks-discouraged – DàChún Sep 11 '17 at 14:48