Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a *.PODSPEC file? [closed]

I'm an iOS developer and I am really interested in all about PODSPEC file:

  1. What is it used for?
  2. Why do we need it?
  3. What is it helpful for?

Thanks a lot guys.

Hope in this question we will collect enough info, cause I have not found a thing about it.

like image 262
Oleg Danu Avatar asked Dec 22 '12 14:12

Oleg Danu


People also ask

What can you do with Podspec file?

A Podspec file, or Spec, describes a version of a Pod library. It includes details about where the source files are located, which files to use, the build settings to apply, dependencies, frameworks used and other general metadata such as the name, version and description for the Pod.

How do I verify a Podspec file?

When you are preparing a podspec for submission, you should make sure to do the following: Run pod spec lint . This is used to validate specifications. Your podspec should pass without any errors or warnings.

What is Vendored_frameworks?

Method: Pod::Specification::DSL#vendored_frameworks=The paths of the framework bundles that come shipped with the Pod. Supports both . framework and . xcframework bundles. The frameworks will be made available to the Pod and to the consumers of the pod.


1 Answers

This is the file extension for CocoaPods, which is distributed as a ruby gem. Which is available in twitter.

Also on github

EDIT:

Cocoapods (http://cocoapods.org/) is a dependency management framework for XCode. It allows you to declaratively define project dependencies and have them included in the build of your project. It's like Apache Maven or Ruby Gems for XCode.

Why you need this?

As an iOS developer, you certainly use a lot of code made by others, in the shape of libraries. You may not remember, but how complicated would your life be if you had to implement everything from scratch? Usually (since building static libraries manually is sooooo boring), you just add the library code into your project. But that has some disadvantages: Code that could be somewhere else is stored in your repository, wasting space. Sometimes, it’s hard to get a specific version of a library. There’s no central place where you can see which libraries are available. Finding a new version of a library and updating your project with it is boring and sometimes, painful. Downloading libraries manually creates a tendency to perhaps make some changes to the downloaded code and just leaving it there (making updating harder, as you’ll need to merge the changes you made with the code you download for the next version).

Copied from : http://www.raywenderlich.com/12139/introduction-to-cocoapods

like image 152
Anoop Vaidya Avatar answered Sep 18 '22 00:09

Anoop Vaidya