-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Is there an existing issue for this?
- I have searched the existing issues
Code of Conduct
- I agree to follow this project's Code of Conduct
Question
Hi there. I am in the midst of investigating react native owl for my company and I am having a hard time getting set up. My first issue has to do with iOS. I can build the app using yarn owl build --platform
. Fine. For some strange reason whenever i run yarn owl test --platform iOS
the script is failing with
$ /Users/curtis/Documents/metamask-mobile/node_modules/.bin/owl test --platform ios
[OWL - CLI] Starting websocket server.
[OWL - CLI] Running tests on ios.
Error: Command failed with ENOENT: xcrun simctl status_bar iPhone-16-Pro override --time 9:41
spawn xcrun ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn xcrun',
path: 'xcrun',
spawnargs: [
'simctl',
'status_bar',
'iPhone-16-Pro',
'override',
'--time',
'9:41'
],
originalMessage: 'spawn xcrun ENOENT',
shortMessage: 'Command failed with ENOENT: xcrun simctl status_bar iPhone-16-Pro override --time 9:41\n' +
'spawn xcrun ENOENT',
command: 'xcrun simctl status_bar iPhone-16-Pro override --time 9:41',
escapedCommand: 'xcrun simctl status_bar iPhone-16-Pro override --time "9:41"',
exitCode: undefined,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
At first I thought this had to do with a previously reported issue but then if i were to run xcrun simctl status_bar iPhone-16-Pro override --time 9:41
as a stand alone command, the simulator time updates as expected. I am at the point where the script fails because it is unable to set the device time. Can these error logs be a bit more verbose?
Secondly, I cannot get Android to build.
BUILD FAILED in 29s
120 actionable tasks: 7 executed, 113 up-to-date
Error: Command failed with exit code 1: ./gradlew assembleDebug --console plain -PisOwlBuild=true
at makeError (/Users/curtis/Documents/metamask-mobile/node_modules/react-native-owl/node_modules/execa/lib/error.js:60:11)
at handlePromise (/Users/curtis/Documents/metamask-mobile/node_modules/react-native-owl/node_modules/execa/index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
shortMessage: 'Command failed with exit code 1: ./gradlew assembleDebug --console plain -PisOwlBuild=true',
command: './gradlew assembleDebug --console plain -PisOwlBuild=true',
escapedCommand: '"./gradlew" assembleDebug --console plain "-PisOwlBuild=true"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Specify --help for available options
error Command failed with exit code 1.
Is it possible to update the documentation to reflect the android setup?
Here is my owl config by the way:
{
"ios": {
"workspace": "ios/MetaMask.xcworkspace",
"scheme": "MetaMask",
"configuration": "Debug",
"device": "iPhone-16-Pro",
"buildCommand":"yarn start:ios",
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/MetaMask.app"
},
"android": {
"packageName": "com.metamask",
"buildType": "Debug",
"binaryPath": "android/app/build/outputs/apk/prod/debug/app-prod-debug.apk"
},
"debug": true,
"report": true
}