美文网首页
如何使项目能够使用 CocoaPods

如何使项目能够使用 CocoaPods

作者: CoderBigBear | 来源:发表于2017-10-02 17:24 被阅读5次

How about ??What to do??

什么是 CocoaPods,不好意思自己查去。

Steps to add CocoaPods to manage dependencies in your project:

添加CocoaPods依赖到管理项目中的步骤:

sudo gem install CocoaPods -> This installs CocoaPods as a piece of software on your machine.

sudo gem install CocoaPods 执行它可以将一份CocoaPods软件安装到您的计算机上。

Go to the root of your project directory and execute pod init -> This will add a base Podfile to your project.

转到项目目录的根目录并执行 pod init - >这将为您的项目添加一个基本的Podfile。

Add the external dependencies that you have to this Podfile by editing it.

通过编辑它来添加您对此Podfile的外部依赖项。

Run pod install which will fetch all the external dependencies mentioned by you, and associate it with a .xcworkspace file of your project. This .xcworkspace file will be generated for you if you already do not have one.

运行pod install,它将获取您添加的所有外部依赖项,并将其与项目的.xcworkspace文件相关联。如果您没有此文件,则将为您生成此.xcworkspace文件。

From here on, you should use .xcworkspace file instead of .xcproject.

从此,您应该使用.xcworkspace文件打开项目而不是.xcproject打开项目。

以上。

相关文章

网友评论

      本文标题:如何使项目能够使用 CocoaPods

      本文链接:https://www.haomeiwen.com/subject/pejtyxtx.html