Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recorder hangs on launch #14

Open
avac-porch opened this issue Mar 31, 2021 · 2 comments
Open

Recorder hangs on launch #14

avac-porch opened this issue Mar 31, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@avac-porch
Copy link

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: [:]
@avac-porch avac-porch added the bug Something isn't working label Mar 31, 2021
@jojonarte
Copy link

jojonarte commented Dec 28, 2021

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

@pke
Copy link

pke commented Feb 24, 2022

There is no podfile in the project, thats why. I guess auto-linking gets confused by this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants