CocoaPods "target has transitive dependencies that include static binaries"

Satish picture Satish · Mar 5, 2017 · Viewed 14.2k times · Source

I'm trying to install a swift framework I found on GitHub along with the GoogleMaps, GooglePlaces into my Xcode project but for some reason when I try to install the pod file its giving the following error

[!] The 'Pods-project1' target has transitive dependencies that include static binaries: (/Users/user1/Desktop/project1/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework, /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework, and /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMapsCore.framework)

Here is my Pod File I'm trying to install:

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

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

use_frameworks!

target 'project1' do
pod 'GooglePlaces'
pod 'GoogleMaps'
pod 'Google-Maps-iOS-Utils'
pod 'PopupDialog'
end

Also here is the link to the swift framework that I'm trying to install: https://github.com/Orderella/PopupDialog

I don't what to do, I've tried multiple things but non of them seem to work. Any help would be appreciated.

Answer

Anson Yao picture Anson Yao · Aug 22, 2017

It is because "Google-Maps-iOS-Utils" is not a dynamic library while you used "use_frameworks!" in your Podfile. Unfortunately, for this library, we need to install it manually for a Swift project. You can check detailed explanation here:

https://github.com/googlemaps/google-maps-ios-utils/blob/master/Swift.md