开发者

What strategy for committing AppName.xcodeproj bundles to SVN?

开发者 https://www.devze.com 2022-12-19 22:57 出处:网络
Each time I do a commit in Xcode I notice that the AppName.xcodeproj file/bundle has been modified. The modifications are obviously important although I don\'t have enough experience with Xcode to und

Each time I do a commit in Xcode I notice that the AppName.xcodeproj file/bundle has been modified. The modifications are obviously important although I don't have enough experience with Xcode to understand them.

What strategy should I use for this? Do I simply commit these changes each time? It's no big deal, it's just that it will appear in SVN history. I'm assuming that I don't add an 'ignore' SVN proprty for this 开发者_StackOverflow社区file/bundle, right?


That project folder contains the metadata for your project, so it certainly needs to be included in source control. There are a some user-specific files you can leave out, though. My .gitignore includes these two entries

*.mode2v3
*.pbxuser

But it won't hurt to leave them in, since they don't affect anything when other users open the project.


I have followed this article for every project and it helps me extremely well. You have to commit two files: .gitignore and .gitattibutes first in order for GitX to have effect.


You'd better to add build directory in order not to include temporary binaries into the repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号