是否可以通过Carthage安装GoogleMap SDK?
我只看到Cocoapods的教程。
或者我只能手动安装,如果我使用Carthage ?
解决方案根据迦太基文档: $ b
现在唯一支持的来源是GitHub存储库(包括GitHub和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 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.
更多推荐
迦太基和谷歌地图
发布评论