How to install projects without cocoa pods?

I have seen various GitHub libraries that look useful, but only a list of CocoaPods as an installation method. I'm not sure I want to be dependent on CocoaPods because I fear Apple will break it in a future OS X / Xcode update. Is there a way to get these libraries in my Xcode project without using CocoaPods?

+5
source share
4 answers

The role of CocoaPods is to automate and simplify the process, but you do not need to use CocoaPods if you do not want to. In the case of "manual installation" it will usually be:

  • download project from github
  • add files to Xcode
  • import headers

But there is no universal recipe for each project, it may differ slightly from case to case, but usually it comes down to the previously mentioned. The best way if you do not want to use CocoaPods is to read the project documentation and case studies, if any.

+10
source

The only way to set things up without Cocoapods is to simply drag and drop the source code of other projects into your class. For example, most Github projects can be installed through Cocoapods, or you can simply drag and drop the appropriate source code into your projects. You do not need to drag and drop all project resources, all you need is usually class files

+1
source

Of course have. Basically you need to load the library project, drag the project into your own project, do some configuration of the library dependency and you're done.

See https://github.com/Alamofire/Alamofire for manually adding a Swift library for more details. And https://github.com/jverkoey/ObjQREncoder to manually add the Objective-C library to your project.

+1
source

You can simply drag and drop into the project folder on Xcode. Here is the Apple Documentation .

+1
source

Source: https://habr.com/ru/post/1211852/


All Articles