The bug appeared with the update to Xcode 11.7. I’m using Detox 17.4.5 (just updated with yarn upgrade) and the detox build command appears to work (though it runs quickly), but when running detox test I get the following error:
Error: XXX/Detox/iOS/xxx/Detox.framework could not be found, this means either you changed a version of Xcode or Detox postinstall script was unsuccessful. To attempt a fix try running 'detox clean-framework-cache && detox build-framework-cache'
However, when I try running ‘detox clean-framework-cache && detox build-framework-cache’, I get the following related error:
Error: Command failed: xxx/node_modules/detox/scripts/build_framework.ios.sh
When I try to run each command separately, I get the same result for both.
- [Yes ] I have tested this issue on the latest Detox release and it still reproduces
Provide the steps necessary to reproduce the issue. If you are seeing a regression, try to provide the last known version where the issue did not reproduce.
- Upgrade Xcode to version 11.7
- Upgrade Detox to 17.4.5
- Run Detox Build
- Run Detox Test
The expected behavior is that the tests run.
Environment (please complete the following information):
- Detox: 17.4.5
- React Native: 0.62.2
- Node: 12.18.0
- Device: iPhone Simulator
- Xcode: 11.7
- iOS: 13.7
- macOS: Catalina 10.15.6