- Open Project in Xcode 9.2
- Select iPhone X Simulator
- Run tests by pressing
Command-U
or SelectProduct->Test
in the menu - If test pass run again
- Notice test failed. To restart delete the app on Simulator
This test simply saves and read two different values in UserDefaults. It should be repeatable and passing all the time.
Add your comments to our open radar: http://www.openradar.me/radar?id=5057804138184704
- Adding sleep to wait did not help, see this branch: https://github.com/omadahealth/UserDefaultsBug/tree/wait-and-sleep-does-not-help
- Any other ideas?