Closed aaronclarke closed 5 years ago
This may be obvious, but when I added @"--standalone",
to the arguments list in xctool/xctool/SimulatorWrapper/SimulatorTaskUtils.m, everything started working from there.
We're seeing this too! Before Xcode 11, simctl spawn
will automatically run in standalone mode if the device is not booted. Xcode 11 starts requiring --standalone
to be explicit.
Thanks for a bug report. Can someone put up a PR? Otherwise I will fix it within next several weeks
Thanks for the quick response. I can have a PR this week.
I just merged a fix from @qyang-nj. Sorry for waiting for me. Thanks for jumping on the issue, reporting and fixing it! I highly appreciate your help!
where is version 0.3.7? because I have the same problem with Xcode 11.1 and the latest releases from the tool is 0.3.6
I was on 3.7 because I had pulled the repo and compiled directly from source before reporting my issue.
ok , so for solving this issue what shall I do ?
If you cannot build from master, I will need to create a new release. I can do that
@ExtremeMan thank you for your help and yes please if you can new release including a soltuion for this issue I really appreciate that.
Hi @ExtremeMan any update about this issue?
Hi @ExtremeMan, @moatazeldebsy. Any news about the 0.3.7 release? I'd like to avoid building from master if possible.
New release is out - https://github.com/Homebrew/homebrew-core/pull/47718. I deeply sorry for a long delay!
@moatazeldebsy, @aturlier thanks for reminding to do it! @qyang-nj thanks for your PR!
Thanks a lot for the update !
I'm on xctool version 0.3.7. My team has had problems with running xctool against older Xcode versions after we've installed Xcode 11. xctool runs just fine against Xcode 11, but trying to swap back after we're done testing some beta feature is impossible. Our understanding is that Apple changed how the simulator works in a way that breaks backwards compatibility.
According to a radar bug we filed with Apple, this is by design, and xctool needs to provide the "--standalone" flag when calling "simctl spawn"
Annoyingly, this option has no documentation other than the fact that it exists
But I feel like I've reverse engineered the meaning. Previously xctool was perfectly fine calling "simctl spawn" without a care in the world about whether or not the simulator was booted at that time. If it was booted, the process would run in that simulator. But if it wasn't booted, simctl would magically handle the lifecycle management of booting that simulator, running the process, and then shutting down afterwards. Apple specifically broke that. Now if you want that behavior, you need to specify "--standalone"