IOS source tests not working on CocoaPods SDK Google Maps

Since moving our code base to Swift 3 using Xcode 8, we have not been able to run our unit tests. The application compiles and archives perfectly for the store, but when we try to run the tests, it cannot create complaints:

framework not found GoogleMapsBase for x86_64 architecture

I checked our file and everything seems to be configured correctly according to the latest documentation.

Edit: Subfile below

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
+4
source share
1 answer

Something like this should work!

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

or

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
+1
source

Source: https://habr.com/ru/post/1654827/


All Articles