人们在克隆项目时是否需要 pod init 或 pod install?

do people need pod init or pod install when they clone the project?

我对 pod 文件有疑问。我正在编写 README,我不确定其他人在将我的项目克隆到他们的 Xcode 时是否需要 运行 pod init 和 pod install。我用了三个椰子,'SwiftyJSON', 'Alamofire', 'Kingfisher'.

我只需要将我的项目提交给其他人,而该应用程序不在应用商店中,所以我想知道他们如何运行我的项目。

下载您的项目后,用户必须执行命令

pod install

init 和 install 命令的区别:

要创建 PodFile,请执行

pod init

下载Podfile中定义的所有依赖,执行

pod install

pod init 仅用于启动 pods,为项目安装 pods,无论是从 repo 还是克隆,您只需要 pod install。只需确保将 pod 文件与项目一起提交即可。