I'm following to following tutorial - How to Create a CocoaPod in Swift.
I'm stuck at the last step - Using Your New CocoaPod
You first need to add your Podspec to a private specs repo; this lets CocoaPods find the pod when you try to install it. Fortunately, you’ve already created a Git repo for this, so this final step is relatively straightforward.
Enter the following in Terminal, making sure you’re still in the RWPickFlavor directory:
pod repo add RWPodSpecs [Your RWPodSpecs Git URL]
pod repo push RWPodSpecs RWPickFlavor.podspec
I get this fatal error:
fatal: destination path 'RWPodSpecs' already exists and is not an empty directory.
I've removed the repo and created it again according to the "Setting Up Your GitHub Repo" tutorial step. But I get this error still.
Any ideas?
The directory you are looking for is in your home directory inside this folder
.cocoapods/repos/
So you chan find your local repos here:
~/.cocoapods/repos/
Check it out and you will see that you already have the RWPodSpecs folder here.
Maybe it has been created once before while you are following the tutorial.
Back it up and remove it.
Then start over.
pod repo addreference.
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