DetoxRecorder
DetoxRecorder copied to clipboard
Recorder hangs on launch
Describe the Bug When running either of the setup commands for starting a recording the logs stops at the same spot.
Tangentially I see the following error when I pod install after installing
[!] use_native_modules! skipped the react-native dependency 'detox-recorder'. No podspec file was found.
- Check to see if there is an updated version that contains the necessary podspec file
- Contact the library maintainers or send them a PR to add a podspec. The react-native-webview podspec is a good example of a package.json driven podspec. See
https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec
- If necessary, you can disable autolinking for the dependency and link it manually. See
https://github.com/react-native-community/cli/blob/master/docs/autolinking.md#how-can-i-disable-autolinking-for-unsupported-library
To Reproduce using this config
"record": {
"binaryPath": "/Users/avacollins/Library/Developer/Xcode/DerivedData/porchhome-gogavyrvnptstcehkcvhviqzgold/Build/Products/Debug-iphonesimulator/porchhome.app",
"build": "yarn ios",
"type": "ios.simulator",
"device": {
"type": "iPhone 11"
}
run detox recorder --configuration "record" --outputTestFile "~/Desktop/RecordedTest.js" --testName "My Recorded Test" --record
in separate terminal run log stream --level debug --style compact --predicate "subsystem=='DetoxRecorder'"
get the following output
Filtering the log data using "subsystem == "DetoxRecorder""
Timestamp Ty Process[PID:TID]
2021-03-31 16:40:01.374 I DetoxRecorderCLI[67774:f2541] [DetoxRecorder:CLI] Parsing arguments
2021-03-31 16:40:01.375 I DetoxRecorderCLI[67774:f2541] [DetoxRecorder:CLI] Attempting to discover Detox config file
2021-03-31 16:40:01.377 I DetoxRecorderCLI[67774:f2541] [DetoxRecorder:CLI] Using “.detoxrc.json” config file
2021-03-31 16:40:01.377 I DetoxRecorderCLI[67774:f2541] [DetoxRecorder:CLI] Launching /bin/bash with arguments: ["-l", "-c", "which applesimutils"] environment: [:]
when running installed with detox recorder --bundleId "com.porch.home" --simulatorId booted --outputTestFile "~/Desktop/RecordedTest.js" --testName "My Recorded Test" --record
I get same output
2021-03-31 16:46:34.185 I DetoxRecorderCLI[67902:f384d] [DetoxRecorder:CLI] Parsing arguments
2021-03-31 16:46:34.186 I DetoxRecorderCLI[67902:f384d] [DetoxRecorder:CLI] Launching /bin/bash with arguments: ["-l", "-c", "which applesimutils"] environment: [:]
Expected Behavior Expect app to launch and start recording
Actual Behavior
Nothing
Screenshots If applicable, add screenshots to help explain your problem.
Environment
- macOS: 10.15.7
- Xcode: 12
- iOS Simulator Runtime: iOS 14.0
- Detox Recorder Version: 1.0.151
Logs Post here the output of
log stream --level debug --style compact --predicate "subsystem=='DetoxRecorder'"
Filtering the log data using "subsystem == "DetoxRecorder""
Timestamp Ty Process[PID:TID]
2021-03-31 16:40:01.374 I DetoxRecorderCLI[67774:f2541] [DetoxRecorder:CLI] Parsing arguments
2021-03-31 16:40:01.375 I DetoxRecorderCLI[67774:f2541] [DetoxRecorder:CLI] Attempting to discover Detox config file
2021-03-31 16:40:01.377 I DetoxRecorderCLI[67774:f2541] [DetoxRecorder:CLI] Using “.detoxrc.json” config file
2021-03-31 16:40:01.377 I DetoxRecorderCLI[67774:f2541] [DetoxRecorder:CLI] Launching /bin/bash with arguments: ["-l", "-c", "which applesimutils"] environment: [:]
2021-03-31 16:46:34.185 I DetoxRecorderCLI[67902:f384d] [DetoxRecorder:CLI] Parsing arguments
2021-03-31 16:46:34.186 I DetoxRecorderCLI[67902:f384d] [DetoxRecorder:CLI] Launching /bin/bash with arguments: ["-l", "-c", "which applesimutils"] environment: [:]
I could see this in pod install
as well
"[!] use_native_modules! skipped the react-native dependency 'detox-recorder'. No podspec file was found.\x1B[0m\n
There is no podfile in the project, thats why. I guess auto-linking gets confused by this.