How do I reset the simulator used by an Xcode bot? -
the simulator instance i'm using left in inconsistent state after continuous integration run, how reset it?
it not seem resetting simulator runs in normal user account on build server reset simulator used bots (which run under restricted _xcsbuild
user.)
inspired this gist, run script "before integration" trigger on bot:
/usr/bin/osascript -e 'tell application "ios simulator" quit' /usr/bin/osascript -e 'tell application "simulator" quit' /usr/bin/xcrun simctl erase
... , dupe radar 24091918 add "all" valid argument xcrun simctl shutdown
.
Comments
Post a Comment