Can't ignore UserInterfaceState.xcuserstate

后端 未结 12 2154
既然无缘
既然无缘 2020-12-22 14:08

I\'m using Git for Xcode 4 project version control. I\'ve explicitly added ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterface

12条回答
  •  萌比男神i
    2020-12-22 14:54

    For xcode 8.3.3 I just checked tried the above code and observe that, now in this casewe have to change the commands to like this

    first you can create a .gitignore file by using

     touch .gitignore
    

    after that you can delete all the userInterface file by using this command and by using this command it will respect your .gitignore file.

     git rm --cached [project].xcworkspace/xcuserdata/[username].xcuserdatad/UserInterfaceState.xcuserstate
     git commit -m "Removed file that shouldn't be tracked"
    

提交回复
热议问题