I'm an iOS developer and I am really interested in all about PODSPEC file:
Thanks a lot guys.
Hope in this question we will collect enough info, cause I have not found a thing about it.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With