简体   繁体   English

如何在现有项目中添加可可足类?

[英]how to add cocoapods to an exsisting project?

I have a project written in Objective-C with libraries. 我有一个用Objective-C语言编写的带有库的项目。 Is it possible to migrate this project to CocoaPods? 是否可以将该项目迁移到CocoaPods? If yes, please explain how to do this? 如果是,请说明如何执行此操作?

Just add CocoaPods to the project usual way. 只需将CocoaPods添加到项目常规方式即可。 Add your existing libraries to the project using Podfile as well. 也可以使用Podfile将现有的库添加到项目中。 Then once you update pods , all the libraries will be available in your project under the Pods. 然后,一旦您更新了pod,所有的库都将在您的项目中的Pods下可用。 Now you can safely delete previous libraries from your project if you had copied them into your project. 现在,如果您已将以前的库复制到项目中,则可以安全地删除它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM