Skip to content

Commit b6a64c2

Browse files
committed
Update: Better UX on iOS running
1 parent cdd7742 commit b6a64c2

File tree

1 file changed

+3
-1
lines changed
  • tools/hbuild/source/targets

1 file changed

+3
-1
lines changed

tools/hbuild/source/targets/ios.d

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,10 @@ ChoiceResult prepareiOS(Choice* c, ref Terminal t, ref RealTimeConsoleInput inpu
230230
getDestination()
231231
));
232232

233+
string device = `"`~configs["iosDevice"].str~`"`;
233234
t.wait(spawnShell(
234-
"open -a Simulator && "~
235+
"xcrun simctl bootstatus " ~ device~ " -b || xcrun simctl boot " ~ device ~
236+
"&& open -a Simulator && "~
235237
"xcrun simctl install booted " ~ getHipPath("build", "appleos", "bin", "HipremeEngine.app") ~ " && " ~
236238
"xcrun simctl launch --console booted hipreme.HipremeEngine"
237239
));

0 commit comments

Comments
 (0)