Search code examples
iosxcodegoogle-mapscocoapodscarthage

Carthage and GoogleMap


Is it possible to install GoogleMap SDK via Carthage?

I only saw the tutorial for Cocoapods only.

Or I only can install manually if I am using Carthage?


Solution

  • According to Carthage docs:

    The only supported origins right now are GitHub repositories (both GitHub.com and GitHub Enterprise)

    Carthage actually builds binary framework from the sources it checkouts from the specified repository. Developer needs to link this built binary frameworks to the project afterwards.

    Google already provides you with the binary version of GoogleMaps framework instead of sharing sources. Therefore all you have to do is just download this binary from official website and link it to your project without using Carthage. So you can say that Google has already done Carthage work for you so you don't have to use Carthage to build GoogleMap framework. And I believe you even couldn't if you want to because GoogleMaps source code is not open.

    Hope my answer will be helpful for you.