-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
iOS testbed fails when the dir ~/Library/Developer/XCTestDevices is empty #135101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report. This is one of those bugs that is infuriatingly difficult to reproduce, because as soon as you've run the simulator successfully, you never see the problem again. Thankfully it looks like this one might be reproducible on GitHub Actions. I've previously fixed an issue related to this - #130388 - however, when I added support for autodetecting the default simulator in #133132, it looks like I've missed the corresponding error handling. Your proposed solution of removing the use of the testing set for device discovery makes sense; I'll check a couple of other edge cases to be sure. |
…ctl --set testing` (#135102) On a fresh Xcode install (including some CI provider configurations), there is no pre-existing testing set that can be used to identify simulator models. Use the default device set to detect available models instead. Live testing simulators are still created in the testing set.
…e `simctl --set testing` (pythonGH-135102) On a fresh Xcode install (including some CI provider configurations), there is no pre-existing testing set that can be used to identify simulator models. Use the default device set to detect available models instead. Live testing simulators are still created in the testing set. (cherry picked from commit dba9de7) Co-authored-by: Joe Rickerby <[email protected]>
…e `simctl --set testing` (pythonGH-135102) On a fresh Xcode install (including some CI provider configurations), there is no pre-existing testing set that can be used to identify simulator models. Use the default device set to detect available models instead. Live testing simulators are still created in the testing set. (cherry picked from commit dba9de7) Co-authored-by: Joe Rickerby <[email protected]>
…se `simctl --set testing` (GH-135102) (#135114) On a fresh Xcode install (including some CI provider configurations), there is no pre-existing testing set that can be used to identify simulator models. Use the default device set to detect available models instead. Live testing simulators are still created in the testing set. (cherry picked from commit dba9de7) Co-authored-by: Joe Rickerby <[email protected]>
…se `simctl --set testing` (GH-135102) (#135113) On a fresh Xcode install (including some CI provider configurations), there is no pre-existing testing set that can be used to identify simulator models. Use the default device set to detect available models instead. Live testing simulators are still created in the testing set. (cherry picked from commit dba9de7) Co-authored-by: Joe Rickerby <[email protected]>
…on't use `simctl --set testing` (pythonGH-135102) (python#135113) On a fresh Xcode install (including some CI provider configurations), there is no pre-existing testing set that can be used to identify simulator models. Use the default device set to detect available models instead. Live testing simulators are still created in the testing set. (cherry picked from commit dba9de7) Co-authored-by: Joe Rickerby <[email protected]>
…on't use `simctl --set testing` (pythonGH-135102) (python#135114) On a fresh Xcode install (including some CI provider configurations), there is no pre-existing testing set that can be used to identify simulator models. Use the default device set to detect available models instead. Live testing simulators are still created in the testing set. (cherry picked from commit dba9de7) Co-authored-by: Joe Rickerby <[email protected]>
Thanks for merging!
I found that I could reproduce it by doing- mv ~/Library/Developer/XCTestDevices ~/Library/Developer/XCTestDevices_bkup Then I'd play around with it, then delete the dir and restore the bkup once done. |
Good to know; my concern is whether that's actually "clean" from the perspective of Xcode - is the directory the only artefact that Xcode is relying on? It may well be... but it's impossible to know for sure. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
iOS testbed run fails when the dir ~/Library/Developer/XCTestDevices is empty.
As seen in pypa/cibuildwheel#2443 .
The dir
~/Library/Developer/XCTestDevices
is empty on machines that are clean, e.g. CI images.The traceback is:
On a machine with empty
~/Library/Developer/XCTestDevices
the above command returns:CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
simctl --set testing
#135102simctl --set testing
(GH-135102) #135113simctl --set testing
(GH-135102) #135114The text was updated successfully, but these errors were encountered: