Hello,
I'm unable to run any test cases in Xcode 16 with the iOS 18 simulator.
Steps to Reproduce:
- Create a new iOS project in Xcode 16 using the default iOS app template with the testing option checked.
- Run any test or UI test case by clicking the "Play" icon in the Test navigator.
- Xcode gets stuck at the "Testing" state indefinitely.
Environment:
- macOS 15 beta 8
- Xcode 16 beta 6
- iOS 18 beta 7 simulator
RESOLVED:
I used Realm database.
After the app creates any FIFO file, the simulator can no longer be cloned. An error occurs during the simulator data copy process, indicating a lack of permission to copy FIFO files.
This cloning failure prevents Xcode from launching tests properly. A simple way to reproduce this issue is to create a new iOS app, add a Realm database, and create any database file (since Realm creates FIFO files for interprocess communication). After that, the simulator can no longer be cloned.
To work around this issue, I wrote a script that removes all pipe files from the simulator directory.