DeyaEldeen DeyaEldeen - 24 days ago 8
iOS Question

How to stop XCode from generating xcuserdata folder and xcuserstate files?

XCode
automatically generates files in
.xcodeproj
project file and in
.xcworkspace
etc...


ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata


this sometimes get's corrupted and make
XCode
crash upon launching or changing a window inside, how do I make
XCode
to not memorize window settings when I launch it again?

note, I locked
com.apple.dt.Xcode.savedState
folder in

~/Library/Saved Application State/


and it never writes there.

Answer

Why not just write a little shell script that deletes the files you want, and then launches Xcode? Instead of opening Xcode, open the script.

Comments