未加载框架库:'Image not found'

Framework Library not loaded: 'Image not found'

我有一个包含 Pods 和我的主要项目的框架。

错误:

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

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.

我正在关注这个 post:source 1 and source 2

我正在尝试所有作为来源的步骤,但没有任何效果。

Framework用了post却放到了Main Project,好像还需要Alamofire在pods。也就是说,在两个项目中都必须修复 Alamofire