The app has crashed Signal 11 was raised

Description of the issue

I am trying to use bitrise to do mobile automation testing using detox. App crashing to load, however in local detox build it all works. I have attached the simulator log in which it states many issues, but basically internet connection not available error. Please help.

Environment:

Where did the issue happen?

I am using osx-xcode-13.0.x. Please see the bitrise yaml


f> ormat_version: ‘11’

default_step_lib_source: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib
project_type: react-native
trigger_map:

  • push_branch: MBI-7610-IOS
    workflow: detox_tests
    workflows:
    detox_tests:
    steps:
    • activate-ssh-key@4: {}
    • git-clone@6: {}
    • yarn@0: {}
    • npm@1:
      inputs:
      • command: install -g detox-cli
    • script:
      inputs:
      • content: |-
        #!/bin/bash

        brew tap wix/brew
        brew install applesimutils
        title: Install Detox Utils

    • script:
      inputs:
      • content: detox build --configuration ios
        title: Detox - Build Detox
    • script:
      inputs:
      • content: detox test --configuration ios --record-videos all --take-screenshots
        all jest --config e2e/config.json --testNamePattern ‘^((?!:ios:).)*$’
        e2e --record-logs all --cleanup
        title: Detox - Run E2E Tests
    • script@1:
      inputs:
      • content: |-
        #!/usr/bin/env bash

        fail if any commands fails

        set -e

        debug log

        set -x

        cp -R artifacts $BITRISE_DEPLOY_DIR
        title: Publish Test Artifacts
        is_always_run: true

    • deploy-to-bitrise-io@2:
      inputs:
      • notify_user_groups: none
        meta:
        bitrise.io:
        stack: osx-xcode-13.0.x
        app:
        envs:
    • opts:
      is_expand: false
      WORKDIR: “.”
    • opts:
      is_expand: false
      PROJECT_LOCATION: android
    • opts:
      is_expand: false
      MODULE: superappApp
    • opts:
      is_expand: false
      VARIANT: Debug
    • opts:
      is_expand: false
      BITRISE_PROJECT_PATH: ios/superappBuddy.xcworkspace
    • opts:
      is_expand: false
      BITRISE_SCHEME: superappBuddy-Alpha
    • opts:
      is_expand: false
      BITRISE_DISTRIBUTION_METHOD: development

Which build Step causes the issue and which version of the step?

detox test --configuration ios --record-videos all --take-screenshots
all jest --config e2e/config.json --testNamePattern ‘^((?!:ios:).)*$’
e2e --record-logs all --cleanup

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO I am not using cache at this moment
  • Does the issue happen sporadically, or every time? : Everytime
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : Newly trying detox ios automation testing

Local reproduction

Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried. Running detox build , yarn install , detox tests is working. When running from bitrise it gives this error.

Local reproduction: Linux / Android (docker based) stack builds

Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp directory and running the build from there with the Bitrise CLI ( Bitrise CLI )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/ .

Build log

● Onboarding › should show signup screen after tap

DetoxRuntimeError: The pending request #-1000 ("isReady") has been rejected due to the following error:

The app has crashed, see the details below:

Signal 11 was raised
(
	0   Detox                               0x000000010ef76135 +[NSThread(DetoxUtils) dtx_demangledCallStackSymbols] + 37
	1   Detox                               0x000000010ef78c10 __DTXHandleCrash + 464
	2   Detox                               0x000000010ef79351 __DTXHandleSignal + 59
	3   libsystem_platform.dylib            0x000000011a323d7d _sigtramp + 29
	4   ???                                 0x0065006400490073 0x0 + 28429402149290099
	5   ???                                 0x0000000000000480 0x0 + 1152
)

  2 |   beforeAll(async () => {
  3 |     console.log("awaiting launch app");
> 4 |     await device.launchApp();
    |                  ^
  5 |     console.log("done launch app");
  6 |
  7 |   });

  at _callee$ (onboarding.e2e.js:4:18)
  at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
  at Generator.invoke [as _invoke] (../node_modules/regenerator-runtime/runtime.js:293:22)
  at Generator.next (../node_modules/regenerator-runtime/runtime.js:118:21)
  at tryCatch (../node_modules/regenerator-runtime/runtime.js:63:40)
  at invoke (../node_modules/regenerator-runtime/runtime.js:154:20)
  at ../node_modules/regenerator-runtime/runtime.js:189:11

● Onboarding › should show forgot password screen after tap

Simulator Log:

com.superapp, Container: (null))

2022-03-10 17:45:30.949 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err306, value: There was a problem communicating with the web proxy server (HTTP)., table: Localizable, localizationName: (null), result: There was a problem communicating with the web proxy server (HTTP).

2022-03-10 17:45:30.949 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Please check your proxy settings. For help with this problem, contact your system administrator., value: Please check your proxy settings. For help with this problem, contact your system administrator., table: Localizable, localizationName: (null), result: Please check your proxy settings. For help with this problem, contact your system administrator.

2022-03-10 17:45:30.951 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err310, value: There was a problem communicating with the secure web proxy server (HTTPS)., table: Localizable, localizationName: (null), result: There was a problem communicating with the secure web proxy server (HTTPS).

2022-03-10 17:45:30.951 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Please check your proxy settings. For help with this problem, contact your system administrator., value: Please check your proxy settings. For help with this problem, contact your system administrator., table: Localizable, localizationName: (null), result: Please check your proxy settings. For help with this problem, contact your system administrator.

2022-03-10 17:45:30.951 Db superapp[70466:2af34d] [com.apple.defaults:User Defaults] found no value for key NSShowNonLocalizedStrings in CFPrefsSearchListSource<0x600000d5c400> (Domain: com.superapp, Container: (null))

2022-03-10 17:45:30.951 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err311, value: There was a problem establishing a secure tunnel through the web proxy server., table: Localizable, localizationName: (null), result: There was a problem establishing a secure tunnel through the web proxy server.

2022-03-10 17:45:30.951 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Please check your proxy settings. For help with this problem, contact your system administrator., value: Please check your proxy settings. For help with this problem, contact your system administrator., table: Localizable, localizationName: (null), result: Please check your proxy settings. For help with this problem, contact your system administrator.

2022-03-10 17:45:30.951 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err-996, value: Could not communicate with background transfer service, table: Localizable, localizationName: (null), result: Could not communicate with background transfer service

2022-03-10 17:45:30.953 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err-997, value: Lost connection to background transfer service, table: Localizable, localizationName: (null), result: Lost connection to background transfer service

2022-03-10 17:45:30.953 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err-998, value: unknown error, table: Localizable, localizationName: (null), result: unknown error

2022-03-10 17:45:30.953 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err-998, value: unknown error, table: Localizable, localizationName: (null), result: unknown error

2022-03-10 17:45:30.953 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err-999, value: cancelled, table: Localizable, localizationName: (null), result: cancelled

2022-03-10 17:45:30.953 Db superapp[70466:2af34d] [com.apple.CFBundle:strings] Bundle: CFBundle 0x7fd66930c160 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CFNetwork.framework> (framework, loaded), key: Err-1000, value: bad URL, table: Localizable, localizationName: (null), result: bad URL