2016-09-16 19 views
4

Xcode 8を使用してコードベースをSwift 3に移行して以来、単体テストを実行できませんでした。アプリストアのコンパイルおよびアーカイブの罰金が、私たちはそれを訴えるの構築に失敗したテストを実行しよう:アーキテクチャx86_64でiOSユニットテストがCocoaPodsで失敗するGoogle Maps SDK

ためGoogleMapsBaseを見つけていない

フレームワーク私は、私たちのpodfileをチェックしましたし、すべてがあるように思われます最新のドキュメントに従って正しく設定してください。

編集:

source 'https://github.com/CocoaPods/Specs.git' 

target "Borked" do 
    platform :ios, '9.3' 
    use_frameworks! 
    pod 'GoogleMaps' 
    pod 'GoogleAnalytics' 

    target "Unit Tests" do 
     inherit! :search_paths 
    end 

    target "UI Tests" do 
     inherit! :search_paths 
    end 

end 
+0

あなたPodfileを投稿してくださいことはできますか? Google Mapsフレームワークとテストターゲットをリンクしていますか? – JAL

+0

私は複数のバリエーションを試しました...メインのターゲットから継承し、別々のものに分割し、依存関係をハードコーディングします。どんな方法でそれらをスライスしても、それはまだ失敗します。 – cfihelp

+0

コドポッドを更新し、ポッドによるポッドのアップデートをインストールして確認できますか? – Prav

答えて

1

以下Podfileはこのような何かが動作するはずです!

source 'https://github.com/CocoaPods/Specs.git' 
    platform :ios, '9.3' 
    use_frameworks! 

    target 'MyApp' do 

     pod 'GoogleMaps' 
     pod 'GoogleAnalytics' 

     target "Unit Tests" do 
      inherit! :search_paths 
     end 

     target "UI Tests" do 
      inherit! :search_paths 
     end 
    end 

またはこの

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, '9.3' 
use_frameworks! 

target 'MyApp' do 

target 'MyExtension' do 

    pod 'GoogleMaps' 
    pod 'GoogleAnalytics' 

    target "Unit Tests" do 
     inherit! :search_paths 
    end 

    target "UI Tests" do 
     inherit! :search_paths 
    end 
    end 
end 
+0

ああ待って - 2番目のフォームが働いた!何らかの理由で明示的にGoogleマップのポッドを各ターゲットに配置する必要がありました。ありがとう! – cfihelp

関連する問題