Reputation: 59
I'm working on an Xcode project (Swift) that utilizes cocoapods. After completing my tasks, everything worked. I then committed and pushed to my GitHub repository. Then I downloaded the project as a zip from the repository to make sure everything was good. Everything looks fine, but the pods are not there. As a result, in the downloaded version the pods are in red. Is there any way to fix this?
(sorry if this is really simple, I'm just new to GitHub and I haven't found a solution anywhere online)
Upvotes: 0
Views: 681
Reputation: 515
When you push everything to github, you will need to check the “select all files”. so that your push to github actually sends the pod directory and the Podfile.lock.
Sometimes you need to manually go into the proj3ct directory in terminal and type “git add .” (Hope that’s the command)
Check your github repo and see if they exist and contain files.
You probably don’t have a .gitignore, but if you do, the. Make sure that you are not ignoring pod files. Otherwise they will never be written to the repository.
If the pod files are in the repo you shouldn’t need to do a pod install. But if all else fails, that’s what you need to do.
Upvotes: 0
Reputation: 2037
The question here is basically: How do I make everything compile after cloning/downloading my project.
It seems that you did not commit your Pods into your source control, so the short answer is: Just run pod install
If you want more details about wether you should commit your Pods or only your Podfile, and about Cocoapods in general, this guide is a good starting point.
Upvotes: 1