Should we commit pod files to version control system (GIT or SVN)

后端 未结 3 671
野的像风
野的像风 2021-01-31 15:36

So far I was working on an app and my Team Lead said not to commit the pod files and I just followed his instructions.

Then our Lead changed and he said to commit the p

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 16:17

    If you are using local development pods, there is an annoying issue if you don't commit the Pods repo.

    Assume you are working on a branch and added file X to a local development Pod. So it's added in 'Compile Sources' in the development Pod target of Pods.xcodeproj file.

    Now you switch branch to another commit which doesn't have file X. Since you gitignore the Pods.xcodeproj, the file X remains in 'Compile Sources' and causes build to fail.

提交回复
热议问题