如何使项目能够使用 CocoaPods

  • 时间:
  • 浏览:0
  • 来源:uu快3下载网站_uu快3开户二维码

以上。

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

换成CocoaPods依赖到管理项目中的步骤:

How about ??What to do??

Steps to add CocoaPods to manage dependencies in your project:

运行pod install,它将获取您换成的所有组织组织结构依赖项,并将其与项目的.xcworkspace文件相关联。已经 您这麼此文件,则将为您生成此.xcworkspace文件。

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

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

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

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.

通过编辑它来换成您对此Podfile的组织组织结构依赖项。

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

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

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