2016-12-27 9 views
0

プロジェクトでRxSwiftを使用しようとしています。Xcode 8とSwift 3.0で "そのようなモジュールはありません" RxSwift '"

Enter image description here

Enter image description here

これは私リンクバイナリとライブラリ状況です:私のpodfileは、私はこのエラーを得た↓

Enter image description here

、以下のようになります。私はそれを修正しようとしている3時間以上しかし、サイトの回答が私のために働いていません...

+0

ターゲット 'RxStudyTests'には2つのポッドしか含まれていませんが、通常のターゲット、特にターゲット' RxStudy'には含まれません。 – luk2302

答えて

3

以下のようなあなたのPodfileを交換してください:あなたのPodfileと

platform :ios, '9.0' 

target 'RxStudy' do 
    use_frameworks! 

    pod 'RxSwift' 
    pod 'RxCocoa' 

    target 'RxStudyTests' do 
     #Add pod here if you want the access of pod in Tests target. 
     #Example: pod 'RxSwift' 
    end 

    target 'RxStudyUITests' do 
     #Add pod here if you want the access of pod in Tests target. 
     #Example: pod 'RxSwift' 
    end 

end 

問題は、あなたが実際のプロジェクトにテストの対象にポッドを追加しないようにしようとしているということですターゲット。上記のようにファイルを変更した後、初めてPodをインストールし、初めて「このようなモジュールエラーはありません」というメッセージが表示されてもプロジェクトを実行します。

3

プロジェクトターゲットではなく、テストターゲットにポッドを挿入しています。

真1:

# Uncomment this line to define a global platform for your project 
platform :ios, '9.0' 

target 'RxStudy' do 
    # Comment this line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 

    # Pods for ProjectName 
    # Insert your pods here 
    pod 'RxSwift' 
    pod 'RxCocoa' 

    target 'RxStudyTests' do 
     inherit! :search_paths 
     # Pods for testing 
    end 

    target 'RxStudyUITests' do 
     inherit! :search_paths 
     # Pods for testing 
    end 

end 
+0

私はばかげたミスを犯しました!ごめんなさい... –

関連する問題