Easy CocoaPods checklist and tutorial
This method is not recommended for maintaining large repos. This method is adviced for small repo's like SwiftRandom, EZAlertController.
- If this is your first time adding cocoapods check out Steps In Detail.
- If you are familiar with pods check out the Pods Creation CheckList
- If you want to update a already added pod checkout Pods Update CheckList
- New Repo
- "Initialize this repository with a README"
- License "MIT"
cd /your/path
&mkdir MyRepo
&cd MyRepo
git init
&git remote add origin https://github.com/<username>/MyRepo.git
&git pull
touch myrepo.podspec
& example podspecpod lib lint MyRepo.podspec
. For errorspod lib lint MyRepo.podspec --verbose
git add .
&git commit -m "Added pods"
&git push
- Create new release
pod trunk push MyRepo.podspec
- Update your project with
git pull origin master
- Update
s.version
insideMyRepo.podspec
- Check local errors with
pod lib lint MyRepo.podspec
git add .
&git commit -m "Update pods version"
git push origin master
- Make a new release
pod trunk push MyRepo.podspec