I have been developing an iOS application for a few months. Now, I want to push it on bitBucket. The problem is git push ignore all files related to cocoapods (e.g., project.xcworkspace Podfile, Podfile.lock, Pods, etc.)
Is there any way to push these files?
Open your .gitignore
file with a text editor (note: it's a hidden file). It's likely that it has lines like:
Pods/
Podfile
or:
Pod*
The line Pods/
is often added in some default .gitignore
files found in various places around the net (example), and it tells git
to not push CocoaPods dependencies.
Well, the solution is to remove or comment out those lines (comments are done with a #
character in your .gitignore
).
Using git add -A to add everything.