迦太基和谷歌地图 [英] Carthage and GoogleMap

查看:123
本文介绍了迦太基和谷歌地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过Carthage安装GoogleMap SDK?



我只看到Cocoapods的教程。



或者我只能手动安装,如果我使用Carthage ?

解决方案

根据迦太基文档
$ b


现在唯一支持的来源是GitHub存储库(包括GitHub.com和GitHub Enterprise)

Carthage实际上是从它从指定存储库检出的源代码构建二进制框架。开发人员需要将此构建的二进制框架与之后的项目链接起来。

Google已向您提供GoogleMaps框架的二进制版本,而不是共享来源。因此,您只需从官方网站下载此二进制文件,然后将其链接到您的项目使用迦太基。所以你可以说谷歌已经完成了迦太基的工作,所以你不必用迦太基来构建谷歌地图框架。我相信你甚至不能如果你想要,因为GoogleMaps源代码是不公开的。



希望我的回答对你有帮助。


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?

解决方案

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.

这篇关于迦太基和谷歌地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆