Git ignore file for Xcode projects

后端 未结 20 1548
栀梦
栀梦 2020-11-22 03:03

Which files should I include in .gitignore when using Git in conjunction with Xcode?

20条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 03:25

    I've added:

    xcuserstate
    xcsettings
    

    and placed my .gitignore file at the root of my project.

    After committing and pushing. I then ran:

    git rm --cached UserInterfaceState.xcuserstate WorkspaceSettings.xcsettings
    

    buried with the folder below:

    /.xcodeproj/project.xcworkspace/xcuserdata/.xcuserdatad/
    

    I then ran git commit and push again

提交回复
热议问题