Scenario 1: I updated a library with cocoapod, everything works beautiful, and I checked in all the changes. My teammates pulled these updates, but not able to build because of missing workspace. I wanted to commit my workspace data but it’s set being ignored in .gitignore file. I didn’t want to change the .gitignore file, since I only need to commit this workspace data once.
Solution: open terminal, change into the project directory, enter following command:
git add -f *.xcworkspace
Then go back to sourceTree, the workspace data change shown there, just commit it!