β€œThe Pods target has transitive dependencies that include static binaries when installing Google-Maps-iOS-Utils,

I am trying to install "Google-Maps-iOS-Utils", but this gives me the error above. Here is the subfile:

platform :ios, '9.0' use_frameworks! target 'MapClusters' do pod 'Alamofire' pod 'SwiftyJSON' pod 'GoogleMaps' pod 'Google-Maps-iOS-Utils' end 

I tried to remove the pod 'Google-Maps-iOS-Utils' and it worked. Therefore, I believe that Google-Maps-iOS-Utils is causing the problem. Here is the complete error:

 [!] The 'Pods-MapClusters' target has transitive dependencies that include static binaries: (/Users/BAPS/Documents/Test/MapClusters/Pods/GoogleMaps/Subspecs/Base/Frameworks/GoogleMapsBase.framework, /Users/BAPS/Documents/Test/MapClusters/Pods/GoogleMaps/Subspecs/Maps/Frameworks/GoogleMapsCore.framework, and /Users/BAPS/Documents/Test/MapClusters/Pods/GoogleMaps/Subspecs/Maps/Frameworks/GoogleMaps.framework) 

I have already gone through many answers here or elsewhere on the Internet. So far I have tried this solution:

  • Disable transitive dependency checking.

    2. pre_install do |installer| def installer.verify_no_static_framework_transitive_dependencies; end end pre_install do |installer| def installer.verify_no_static_framework_transitive_dependencies; end end

    post_install do |installer| find Pods -regex 'Pods/GoogleMaps.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)GoogleMaps\\/\\(.*\\)\\(>\\)/\\"\\2\\"/' post_install do |installer| find Pods -regex 'Pods/GoogleMaps.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)GoogleMaps\\/\\(.*\\)\\(>\\)/\\"\\2\\"/' find Pods -regex 'Pods/Google-Maps-iOS-Utils.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)Google-Maps-iOS-Utils\\/\\(.*\\)\\(>\\)/\\"\\2\\"/' end find Pods -regex 'Pods/Google-Maps-iOS-Utils.*\\.h' -print0 | xargs -0 sed -i '' 's/\\(<\\)Google-Maps-iOS-Utils\\/\\(.*\\)\\(>\\)/\\"\\2\\"/' end

After adding over two points in the Podfile, the installation is done, but then when I try to start the application, I get this error:

Error

After removing the pod 'SwiftyJSON' it works, but I need it.

I tried a few other things, but nothing helps. I am new to ios development, so I can not help myself.

I am using swift, xcode 7.3 and the latest cocoapods.

+5
source share
3 answers

I realized this after a big fight. Upon request, the Google guys put the tutorial in their git repository. Here's a link

+4
source

This code is used in the podfile to avoid the error when installing pod:

 pre_install do |installer| def installer.verify_no_static_framework_transitive_dependencies; end end 

But still need a solution for pod lib.

+3
source

update your swap file

  platform :ios, '9.0' use_frameworks! target 'MapClusters' do pod 'Alamofire' pod 'SwiftyJSON' pod 'GoogleMaps' pod 'Google-Maps-iOS-Utils', :git => 'https://github.com/googlemaps/google-maps-ios-utils' end 
0
source

All Articles