ios - 如何在 iOS 应用程序中包含 github 项目,就像 android studio 中的依赖项一样

标签 ios swift github git-clone

我尝试了 xcode-> 源代码管理 -> checkout -> 在存储库位置(“https://github.com/glyuck/GlyuckDataGrid.git ”)-> 下载

github 项目已下载到我的项目文件夹中,但我无法使用它的任何类。我是一名 Android 应用程序开发人员,了解 Android 中的依赖性,我对 iOS 应用程序开发非常陌生。提前致谢。

最佳答案

Cocoapods 是许多依赖项的流行方式。只需将 pod“GlyuckDataGrid”添加到 podfile 并运行 pod install 即可。安装说明如下:https://cocoapods.org

关于ios - 如何在 iOS 应用程序中包含 github 项目,就像 android studio 中的依赖项一样,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43042797/

相关文章:

ios - 将 Class 的 NSArray 保存到 cacheDirectory

Swift 3.0 - 日历 startOfDay 方法返回凌晨 3 点

git - 同一台计算机上的多个 GitHub 帐户?

iphone - 日语的 UILocalizedIndexedCollat​​ion 为联系人/音乐应用程序提供不同的排序

ios - 从 -traitCollection 返回 nil,这在 Xcode 11 Beta 中是不允许的

ios - 无法更改某个 UIView 中 subview 的大小

java - 使用 Jenkinsfile 和 maven 对 pullRequest 的代码启动声纳分析

git - GitHub 上 pull request 中的分支名称

android - Android 的 NSNonLossyASCIIStringEncoding 等价物

objective-c - Objective-C - 如何实现自定义回调方法但强制执行特定参数?