I am getting the following error trying to run detox test --configuration ios.sim.release:
Error: app binary not found at '/Users/.../ios/build/Build/Products/Release-iphonesimulator/[appname].app', did you build it?
However, the detox build succeeds, so it is built. In addition, everything works correctly with a debug build and test.
Is there any way to work out where it is putting the release build?
I have tried building the app with xcode, react-native run-ios and detox build.
Any help would be appreciated.
Please see my configurations below:
"detox": {
"test-runner": "mocha",
"specs": "e2e",
"runner-config": "e2e/mocha.opts",
"configurations": {
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/[appname].app",
"build": "xcodebuild -workspace ios/[appname].xcworkspace -scheme [appname] -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"type": "ios.simulator",
"name": "iPhone 7"
},
"ios.sim.release": {
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/[appname].app",
"build": "xcodebuild -workspace ios/[appname].xcworkspace -scheme neonRide -configuration Release -sdk iphonesimulator -derivedDataPath ios/build",
"type": "ios.simulator",
"name": "iPhone 7"
}
},
"test-runner": "mocha"
}
Please see an abridged version of package.json below:
{
"name": "[appname]",
"version": "0.1.0",
"private": true,
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-flow": "^6.23.0",
"babel-preset-react-native-stage-0": "^1.0.1",
"detox": "^8.2.3",
"eslint-config-rallycoding": "^3.2.0",
"flow-bin": "^0.66.0",
"jest": "^23.5.0",
"jest-expo": "^22.0.0",
"mocha": "^5.2.0",
"react-test-renderer": "16.0.0-beta.5"
},
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"test": "node node_modules/jest/bin/jest.js --watch",
"build": "babel src/ -d lib/",
"flow": "flow"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
...
"react-native": "^0.55.4",
...
},
"detox": {
...
}