What is Subspec?
dependency ‘Facebook-iOS-SDK’ end # end. Subspecs are a way of chopping up the functionality of a Podspec, allowing people to install a subset of your library.
What is Podspec file for?
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. podspec file.
How do you make Podspec?
Creating a Podspec
- To create a Podspec, navigate to your project file in the Terminal.
- Run the following command to create the file: touch FantasticView. podspec .
- Now open the file using an editor.
- Paste the following code inside the Podspec:
What language is used in Podfile?
Ruby
CocoaPods/Programming languages
What does POD install do?
Every time the pod install command is run — and downloads and install new pods — it writes the version it has installed, for each pods, in the Podfile. lock file. This file keeps track of the installed version of each pod and locks those versions.
What does POD Deintegrate do?
GitHub – CocoaPods/cocoapods-deintegrate: A CocoaPods plugin to remove and de-integrate CocoaPods from your project.
What are private pods?
CocoaPods is a great tool not only for adding open source code to your project, but also for sharing components across projects. You can use a private Spec Repo to do this.
Where are CocoaPods stored?
By default CocoaPods stores repositories in your home folder in ~/. cocoapods and caches Pods in ~/Library/Caches/CocoaPods .
What is private pod?
Is CocoaPods owned by Apple?
AppIe* has finally acquired CocoaPods. After several months of discussions and meetings we are proud to finally be able to announce big news: CocoaPods has been acquired by AppIe for US$ 20 Million on the 1st of April, today.
Do I need CocoaPods?
Conclusion. CocoaPods is a tool that makes managing your project much simpler. It can save you a lot of effort and time when dealing with dependencies in your project as it makes adding, removing and updating libraries that much easier. For more on using and troubleshooting CocoaPods, check out the CocoaPods guides.
How are subspecs used in a podspec?
A Simple specification. Subspecs are a way of chopping up the functionality of a Podspec, allowing people to install a subset of your library. With the above example a Podfile using pod ‘ShareKit’ results in the inclusion of the whole library, while pod ‘ShareKit/Facebook’ can be used if you are interested only in the Facebook specific parts.
What are the specs of a pod library?
A Podspec, or Spec, describes a version of a Pod library. One Pod, over the course of time, will have many Specs. It includes details about where the source should be fetched from, what files to use, the build settings to apply, and other general metadata such as its name, version, and description.
Why is the specs Repo strict about podspecs?
To ensure a high quality, reliable collection of Pods, the Specs Repo is strict about the podspecs added. One of the primary purposes of this repo is to guarantee the integrity of existing CocoaPods installations. When you are preparing a podspec for submission, you should make sure to do the following:
Which is an example of a spec on GitHub?
Here is an example spec: The Specs Repo is the repository on GitHub that contains the list of all available pods. Every library has an individual folder, which contains sub folders of the available versions of that pod. See the Private Pods section for an explanation of the Spec repo’s file structure.