添加 Command Line Tools 即可 执行 git 命令
Xcode -> Open Developer Tools -> More Developer Tools
添加 Command Line Tools
然后通过 mac 终端 即可 运行 git 命令
在执行 添加 module 的 命令时 需要 先 进入 xcode 的项目目录
cd Documents/ios_project/test2
其中 test2 就是 XCODE 项目 文件夹
然后 执行
git init
这时 会在 项目 目录 里创建 .git (隐藏) 文件夹
然后就可以执行 添加 module 命令了,如 添加 AES 加密 的 CryptoSwift
git submodule add https://github.com/krzyzanowskim/CryptoSwift.git
本文介绍如何在Mac上安装Git并配置CommandLineTools,以便在终端中运行Git命令。此外,还介绍了如何初始化一个Git仓库,并添加子模块,例如加密库CryptoSwift。

1万+

被折叠的 条评论
为什么被折叠?



