2016-12-23 9 views
0

コマンドpod lib createによって生成されたスケルトンを使用しています。どのように依存性を持つCocoaPodを作成しますか?

他の2つのポッドに依存するポッドを作成する:PromiseKitAWSS3。 >私は、ポッド内のファイルをコンパイルすることはできません、 enter image description here

しかし:

➜ Example git:(master) ✗ pod install 
Analyzing dependencies 
Fetching podspec for `ruawss3` from `../` 
Downloading dependencies 
Using AWSCore (2.4.16) 
Using AWSS3 (2.4.16) 
Using FBSnapshotTestCase (2.1.4) 
Using Nimble (5.1.1) 
Using Nimble-Snapshots (4.4.0) 
Using PromiseKit (4.1.0) 
Using Quick (1.0.0) 
Using ruawss3 (0.1.0) 
Generating Pods project 
Integrating client project 
Sending stats 
Pod installation complete! There are 7 dependencies from the Podfile and 8 total pods installed. 
➜ Example git:(master) ✗ pwd 
/Users/brunomacabeusaquino/ApenasMeu/Dropbox (BEPiD)/Swift/ruawss3/Example 

そしてプロジェクトでこのポッドを追加します。

use_frameworks! 

target 'ruawss3_Example' do 
    pod 'ruawss3', :path => '../' 
    pod 'AWSS3' 
    pod 'PromiseKit', '~> 4.0' 

    target 'ruawss3_Tests' do 
    inherit! :search_paths 

    pod 'Quick' 
    pod 'Nimble' 
    pod 'FBSnapshotTestCase' 
    pod 'Nimble-Snapshots' 
    end 
end 

そしてpod installを使用します。その後、私はPodfileを変更します開発ポッド> ruawss3> ruawss3>クラス> AmazonS3.swift。 Xcodeは 'AWSCore'モジュールを見つけることができません。それを修正するには?

答えて

2

私は私の問題を解決しました。

ポッドの依存関係を追加する正しい場所は、.podspecファイルで、ビルド設定dependencyを使用しています。次に、pod installを実行します。

関連する問題