From the course: Making Your Own CocoaPod with Swift

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Edit the Podspec

Edit the Podspec

- [Harrison] If you're not already here, go ahead and navigate to the Podspec MetaData folder, where the Podspec file is located. I'm going to close the right-hand utilities view, just so we have a bit more room to work with. At first glance this might seem a bit overwhelming since it's a Ruby file. But, we're going to go through it step by step. Just a note, like in a Pod file, anything written after a pound sign is a comment. So, a lot of these properties are commented out by default, which keeps things simple for us since we want a fairly straightforward Pod. Let's start from the top of the Podspec. The first line here under all the comments is just telling us that for the rest of the file, s is our Podspec variable. The name and version should stay as they are if you created the Pod library with the name you wanted. CocoaPods uses semantic versioning and it's just good practice to follow the same convention when publishing Pods of your own. If you need to know more about what…

Contents