2016-05-02 23 views
3

私はポッドと私のメインプロジェクトも持っているフレームワークを持っています。フレームワークライブラリがロードされていません: '画像が見つかりません'

エラー:

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はメインプロジェクトにフレームワークポッドに存在するがありません。

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 .

私はこのポストを以下のよ:source 1source 2

は私が源であるが、何も動作手順のすべてをしようとしています。

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

答えて

0

Frameworkはポストを使用していますが、Main Projectに入れて、また、ポッド内Alamofireを必要とするようです。つまり、修正するには両方のプロジェクトでAlamofireにする必要があります。

+0

これは唯一の解決策ですか?メインプロジェクトにAlamofireを含めたくないからです。 – User9527

+0

申し訳ありませんが、それは私のために働いた唯一のものでした。別の方法を見つけたら、私にコメントすることをためらってください。 – jose920405

+0

傘のフレームワークです。見つけたソリューションはこちら:https://stackoverflow.com/questions/41397746/umbrella-framework/41815368#41815368 and https://stackoverflow.com/questions/27868259/embedding-a-framework-within-a-framework-ios- 8、しかし、傘のフレームワークは、Appによって推奨されません:https://stackoverflow.com/questions/7365578/why-are-umbrella-frameworks-discouraged – User9527

関連する問題