Repository navigation
iOS testbed fails when the dir ~/Library/Developer/XCTestDevices is empty #135101
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Jun 3, 2025 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.
- added3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes3.15bugs and security fixesbugs and security fixes
on Jun 3, 2025 - added a commit that references this issue
on Jun 4, 2025 - added 4 commits that reference this issue
on Jun 4, 2025 Thanks for merging!
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.
I found that I could reproduce it by doing-
mv ~/Library/Developer/XCTestDevices ~/Library/Developer/XCTestDevices_bkupThen I'd play around with it, then delete the dir and restore the bkup once done.
I found that I could reproduce it by doing-...
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.
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/XCTestDevicesis empty on machines that are clean, e.g. CI images.The traceback is:
On a machine with empty
~/Library/Developer/XCTestDevicesthe 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) #135114