Detox: device.reloadReactNative crashes on RN 0.59.8

Describe the bug device.reloadReactNative() crashes the app on RN 0.59.8.

I saw similar issues, but none solved this one. Also RN example on this repo is using RN 0.56.

To Reproduce

  • I have tested this issue on the latest Detox release and it still reproduces

Provide the steps necessary to reproduce the issue. If you are seeing a regression, try to provide the last known version where the issue did not reproduce.

  1. Update to react-native 0.59.8
  2. Run a test with await device.reloadReactNative();

Expected behavior The device should reload as usual and keep running other tests.

Screenshots May-16-2019 18-54-00

Environment (please complete the following information):

  • Detox: 12.8.0
  • React Native: 0.59.8
  • Node: 10.13.0
  • Device: iPhone 7 on simulator
  • Xcode: 10.2.1
  • iOS: 12.2
  • macOS: 10.14.5

Device and Verbose Detox Logs

➜ detox test --configuration ios.sim.debug --loglevel trace

detox[53050] INFO:  [test.js] node_modules/.bin/mocha --opts e2e/mocha.opts --configuration ios.sim.debug --loglevel trace --grep :android: --invert --artifacts-location "artifacts/ios.sim.debug.2019-05-16 21-56-43Z" "e2e"


detox[53052] INFO:  [DetoxServer.js] server listening on localhost:51938...
detox[53052] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:51938
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"login","params":{"sessionId":"f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2","role":"tester"},"messageId":0}
detox[53052] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2
detox[53052] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"loginSuccess","params":{"sessionId":"f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2","role":"tester"},"messageId":0}

detox[53052] DEBUG: [exec.js/EXEC_CMD, #0] /usr/bin/xcrun simctl list -j
detox[53052] TRACE: [exec.js/EXEC_SUCCESS, #0] {
  "devicetypes" : [
    {
      "name" : "iPhone 4s",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 4s.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-4s"
    },
    {
      "name" : "iPhone 5",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 5.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5"
    },
    {
      "name" : "iPhone 5s",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 5s.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5s"
    },
    {
      "name" : "iPhone 6",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6"
    },
    {
      "name" : "iPhone 6 Plus",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6 Plus.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus"
    },
    {
      "name" : "iPhone 6s",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
    },
    {
      "name" : "iPhone 6s Plus",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 6s Plus.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus"
    },
    {
      "name" : "iPhone 7",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7"
    },
    {
      "name" : "iPhone 7 Plus",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7 Plus.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus"
    },
    {
      "name" : "iPhone 8",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 8.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
    },
    {
      "name" : "iPhone 8 Plus",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 8 Plus.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus"
    },
    {
      "name" : "iPhone SE",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone SE.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE"
    },
    {
      "name" : "iPhone X",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone X.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-X"
    },
    {
      "name" : "iPhone Xs",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS"
    },
    {
      "name" : "iPhone Xs Max",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xs Max.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max"
    },
    {
      "name" : "iPhone Xʀ",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone Xʀ.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XR"
    },
    {
      "name" : "iPad mini (5th generation)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini (5th generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini--5th-generation-"
    },
    {
      "name" : "iPad Air (3rd generation)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air (3rd generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air--3rd-generation-"
    },
    {
      "name" : "iPad 2",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad 2.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-2"
    },
    {
      "name" : "iPad Retina",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Retina.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Retina"
    },
    {
      "name" : "iPad Air",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air"
    },
    {
      "name" : "iPad mini 2",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini 2.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-2"
    },
    {
      "name" : "iPad mini 3",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini 3.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-3"
    },
    {
      "name" : "iPad mini 4",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad mini 4.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-mini-4"
    },
    {
      "name" : "iPad Air 2",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Air 2.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2"
    },
    {
      "name" : "iPad (5th generation)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (5th generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-"
    },
    {
      "name" : "iPad Pro (9.7-inch)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (9.7-inch).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-"
    },
    {
      "name" : "iPad Pro (12.9-inch)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro"
    },
    {
      "name" : "iPad Pro (12.9-inch) (2nd generation)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (2nd generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
    },
    {
      "name" : "iPad Pro (10.5-inch)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (10.5-inch).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-"
    },
    {
      "name" : "iPad (6th generation)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad (6th generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-"
    },
    {
      "name" : "iPad Pro (11-inch)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (11-inch).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--11-inch-"
    },
    {
      "name" : "iPad Pro (12.9-inch) (3rd generation)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPad Pro (12.9-inch) (3rd generation).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---3rd-generation-"
    },
    {
      "name" : "Apple TV",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/AppleTVOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple TV.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p"
    },
    {
      "name" : "Apple TV 4K",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/AppleTVOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple TV 4K.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K"
    },
    {
      "name" : "Apple TV 4K (at 1080p)",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/AppleTVOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple TV 4K (at 1080p).simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p"
    },
    {
      "name" : "Apple Watch - 38mm",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple Watch - 38mm.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm"
    },
    {
      "name" : "Apple Watch - 42mm",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple Watch - 42mm.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm"
    },
    {
      "name" : "Apple Watch Series 2 - 38mm",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple Watch Series 2 - 38mm.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm"
    },
    {
      "name" : "Apple Watch Series 2 - 42mm",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple Watch Series 2 - 42mm.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm"
    },
    {
      "name" : "Apple Watch Series 3 - 38mm",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple Watch Series 3 - 38mm.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm"
    },
    {
      "name" : "Apple Watch Series 3 - 42mm",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple Watch Series 3 - 42mm.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm"
    },
    {
      "name" : "Apple Watch Series 4 - 40mm",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple Watch Series 4 - 40mm.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-40mm"
    },
    {
      "name" : "Apple Watch Series 4 - 44mm",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/Apple Watch Series 4 - 44mm.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-44mm"
    }
  ],
  "runtimes" : [
    {
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
      "availabilityError" : "",
      "buildversion" : "16E226",
      "availability" : "(available)",
      "isAvailable" : true,
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-2",
      "version" : "12.2",
      "name" : "iOS 12.2"
    },
    {
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/AppleTVOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/Runtimes\/tvOS.simruntime",
      "availabilityError" : "",
      "buildversion" : "16L225",
      "availability" : "(available)",
      "isAvailable" : true,
      "identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-12-2",
      "version" : "12.2",
      "name" : "tvOS 12.2"
    },
    {
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/WatchOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/Runtimes\/watchOS.simruntime",
      "availabilityError" : "",
      "buildversion" : "16T224",
      "availability" : "(available)",
      "isAvailable" : true,
      "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-5-2",
      "version" : "5.2",
      "name" : "watchOS 5.2"
    }
  ],
  "devices" : {
    "com.apple.CoreSimulator.SimRuntime.tvOS-12-2" : [
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple TV",
        "udid" : "7B3355B9-07E5-4EC2-AB0F-8DC59213E6C2",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple TV 4K",
        "udid" : "B364D8B7-E2DB-4C9F-898E-9E339A034253",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple TV 4K (at 1080p)",
        "udid" : "DA058DB6-BD0F-4A02-9B22-0461C6431657",
        "availabilityError" : ""
      }
    ],
    "com.apple.CoreSimulator.SimRuntime.watchOS-5-2" : [
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple Watch Series 2 - 38mm",
        "udid" : "7A0E9BB1-9E2C-480A-B134-AA0398D91782",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple Watch Series 2 - 42mm",
        "udid" : "17F754B1-7E12-4E00-AC8A-C4DD1D66672B",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple Watch Series 3 - 38mm",
        "udid" : "72F2B778-41E2-4BB3-AAB0-E0B5B975B957",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple Watch Series 3 - 42mm",
        "udid" : "378A3EAC-8031-4386-BC10-53C2C0612287",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple Watch Series 4 - 40mm",
        "udid" : "3CFD99A0-76EE-4F88-8FF0-9E318DB60339",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "Apple Watch Series 4 - 44mm",
        "udid" : "35E63BEE-8082-430B-BE6E-D91E3AC2F3F6",
        "availabilityError" : ""
      }
    ],
    "com.apple.CoreSimulator.SimRuntime.iOS-12-2" : [
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 5s",
        "udid" : "CE0643EB-44A5-4A76-87CE-110B56F3F6B5",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 6",
        "udid" : "D2EEF7F8-B997-4CA3-AF4E-B46B7CA42AAC",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 6 Plus",
        "udid" : "2CCA7649-501B-47D4-8A0D-B88C45D3CA59",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 6s",
        "udid" : "CE9C02F3-6ABA-4303-8D85-33839BEAE6D3",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 6s Plus",
        "udid" : "73338AC3-5B27-4937-9987-FAE3900C7219",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Booted",
        "isAvailable" : true,
        "name" : "iPhone 7",
        "udid" : "ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 7 Plus",
        "udid" : "C7523581-CDC4-4E60-8986-4F9B6C7B3F6B",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 8",
        "udid" : "166A1E0C-4824-4FB8-9F6A-70ADDAA410BE",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone 8 Plus",
        "udid" : "AC238915-69E4-4827-8A28-5F2774B6F0C6",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone SE",
        "udid" : "F48D59C5-8F44-459C-A4A5-B286CB42DD34",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Booted",
        "isAvailable" : true,
        "name" : "iPhone X",
        "udid" : "FEFB749A-A48E-496E-891D-35AEF304551F",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone Xs",
        "udid" : "468FAAFF-6468-46C4-A053-772A3ED49E3B",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone Xs Max",
        "udid" : "8301BEEB-981C-467E-BD00-FBC4B6F59177",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPhone Xʀ",
        "udid" : "44D494A8-EEA9-4201-AF81-C2D218CD6ACC",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Air (3rd generation)",
        "udid" : "071D13F6-C949-4484-85A4-D363F2910BF9",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Air",
        "udid" : "5D91FB31-FD92-475C-8A92-E11955A16970",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Air 2",
        "udid" : "A8E9C4A6-4CF1-485B-85E5-D0E6CFAB511C",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad (5th generation)",
        "udid" : "ADE57F4B-E56B-4564-8797-356F4E20BF38",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Pro (9.7-inch)",
        "udid" : "81944AF3-3FED-4CB2-B529-083D04E92B38",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Pro (12.9-inch)",
        "udid" : "B7B3F913-9A40-42D2-B14C-C7C425A397CA",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Pro (12.9-inch) (2nd generation)",
        "udid" : "4C7CC8E2-FFE2-48C0-AD7E-C08D4A1EC0B8",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Pro (10.5-inch)",
        "udid" : "36B4710B-E58B-4948-8D51-389132F080B8",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad (6th generation)",
        "udid" : "02CC2AC6-9A27-46F8-9433-4553F9795B4C",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Pro (11-inch)",
        "udid" : "AB093709-7BF8-4B07-BBFF-9F77B3AE854F",
        "availabilityError" : ""
      },
      {
        "availability" : "(available)",
        "state" : "Shutdown",
        "isAvailable" : true,
        "name" : "iPad Pro (12.9-inch) (3rd generation)",
        "udid" : "9C49DFE0-D634-4532-B513-2A0844FF1F1B",
        "availabilityError" : ""
      }
    ]
  },
  "pairs" : {
    "17946C6F-EA9E-45BD-AA70-19690FBCB621" : {
      "watch" : {
        "name" : "Apple Watch Series 4 - 40mm",
        "udid" : "3CFD99A0-76EE-4F88-8FF0-9E318DB60339",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone Xs",
        "udid" : "468FAAFF-6468-46C4-A053-772A3ED49E3B",
        "state" : "Shutdown"
      },
      "state" : "(active, disconnected)"
    },
    "C61778B2-5CD4-41FA-A3BC-41FD2F1E9BAC" : {
      "watch" : {
        "name" : "Apple Watch Series 4 - 44mm",
        "udid" : "35E63BEE-8082-430B-BE6E-D91E3AC2F3F6",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone Xs Max",
        "udid" : "8301BEEB-981C-467E-BD00-FBC4B6F59177",
        "state" : "Shutdown"
      },
      "state" : "(active, disconnected)"
    }
  }
}

detox[53052] DEBUG: [exec.js/EXEC_CMD, #1] applesimutils --list --byType "iPhone 7" --byOS "12.2"
detox[53052] DEBUG: [exec.js/EXEC_TRY, #1] Searching for device matching iPhone 7...
detox[53052] TRACE: [exec.js/EXEC_SUCCESS, #1] [
  {
    "availabilityError" : "",
    "os" : {
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
      "availabilityError" : "",
      "buildversion" : "16E226",
      "availability" : "(available)",
      "isAvailable" : true,
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-2",
      "version" : "12.2",
      "name" : "iOS 12.2"
    },
    "availability" : "(available)",
    "deviceType" : {
      "name" : "iPhone 7",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7"
    },
    "udid" : "ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0",
    "isAvailable" : true,
    "state" : "Booted",
    "name" : "iPhone 7"
  }
]

detox[53052] DEBUG: [exec.js/EXEC_CMD, #2] applesimutils --list --byId "ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0"
detox[53052] TRACE: [exec.js/EXEC_SUCCESS, #2] [
  {
    "availabilityError" : "",
    "os" : {
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/Runtimes\/iOS.simruntime",
      "availabilityError" : "",
      "buildversion" : "16E226",
      "availability" : "(available)",
      "isAvailable" : true,
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-2",
      "version" : "12.2",
      "name" : "iOS 12.2"
    },
    "availability" : "(available)",
    "deviceType" : {
      "name" : "iPhone 7",
      "bundlePath" : "\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneOS.platform\/Developer\/Library\/CoreSimulator\/Profiles\/DeviceTypes\/iPhone 7.simdevicetype",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7"
    },
    "udid" : "ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0",
    "isAvailable" : true,
    "state" : "Booted",
    "name" : "iPhone 7"
  }
]

detox[53052] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBootDevice({ coldBoot: false,
  deviceId: 'ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0' })
detox[53052] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeUninstallApp({ deviceId: 'ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0',
  bundleId: 'chat.rocket.reactnative' })
detox[53052] DEBUG: [exec.js/EXEC_CMD, #3] /usr/bin/xcrun simctl uninstall ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0 chat.rocket.reactnative
detox[53052] DEBUG: [exec.js/EXEC_TRY, #3] Uninstalling chat.rocket.reactnative...
detox[53052] TRACE: [exec.js/EXEC_SUCCESS, #3]
detox[53052] DEBUG: [exec.js/EXEC_SUCCESS, #3] chat.rocket.reactnative uninstalled
detox[53052] DEBUG: [exec.js/EXEC_CMD, #4] /usr/bin/xcrun simctl install ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0 "/Users/diegomello/Development/Work/Rocket.Chat.ReactNative/ios/build/Build/Products/Debug-iphonesimulator/RocketChatRN.app"
detox[53052] DEBUG: [exec.js/EXEC_TRY, #4] Installing /Users/diegomello/Development/Work/Rocket.Chat.ReactNative/ios/build/Build/Products/Debug-iphonesimulator/RocketChatRN.app...
detox[53052] TRACE: [exec.js/EXEC_SUCCESS, #4]
detox[53052] DEBUG: [exec.js/EXEC_SUCCESS, #4] /Users/diegomello/Development/Work/Rocket.Chat.ReactNative/ios/build/Build/Products/Debug-iphonesimulator/RocketChatRN.app installed
detox[53052] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeAll()
detox[53052] DEBUG: [exec.js/EXEC_CMD, #5] applesimutils --simulator ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0 --bundle chat.rocket.reactnative --setPermissions notifications=YES
detox[53052] DEBUG: [exec.js/EXEC_TRY, #5] Trying to set permissions...
detox[53052] TRACE: [exec.js/EXEC_SUCCESS, #5]
detox[53052] DEBUG: [exec.js/EXEC_SUCCESS, #5] Permissions are set
detox[53052] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeLaunchApp({ bundleId: 'chat.rocket.reactnative',
  deviceId: 'ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0',
  launchArgs:
   { '-detoxServer': 'ws://localhost:51938',
     '-detoxSessionId': 'f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2' } })
detox[53052] DEBUG: [exec.js/EXEC_CMD, #6] /bin/cat /dev/null >/Users/diegomello/Library/Developer/CoreSimulator/Devices/ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0/data/tmp/detox.last_launch_app_log.out 2>/Users/diegomello/Library/Developer/CoreSimulator/Devices/ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/diegomello/Library/Detox/ios/e1d450dd16db3efaaf845934e0da28f21e16de83/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0 chat.rocket.reactnative --args -detoxServer "ws://localhost:51938" -detoxSessionId "f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2"
detox[53052] DEBUG: [exec.js/EXEC_TRY, #6] Launching chat.rocket.reactnative...
detox[53052] TRACE: [exec.js/EXEC_SUCCESS, #6] chat.rocket.reactnative: 53094

detox[53052] INFO:  [AppleSimUtils.js] chat.rocket.reactnative launched. The stdout and stderr logs were recreated, you can watch them with:
        tail -F /Users/diegomello/Library/Developer/CoreSimulator/Devices/ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0/data/tmp/detox.last_launch_app_log.{out,err}
detox[53094] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onLaunchApp({ bundleId: 'chat.rocket.reactnative',
  deviceId: 'ED8950C1-CFD3-4E9F-8EEE-53AC5D162DD0',
  launchArgs:
   { '-detoxServer': 'ws://localhost:51938',
     '-detoxSessionId': 'f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2' },
  pid: 53094 })
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=isReady (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] DEBUG: [DetoxServer.js/LOGIN] role=testee, sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2
detox[53052] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=testee, sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=ready (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"ready","messageId":-1000,"params":{}}

detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"waitForActive","params":{},"messageId":1}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=waitForActive (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=waitForActiveDone (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"waitForActiveDone","messageId":1,"params":{}}

  Onboarding
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYCondition"},"method":"detoxConditionForElementMatched:","args":[{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"onboarding-view"}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]}}]}}]}},"method":"waitWithTimeout:","args":[{"type":"CGFloat","value":2}]},"messageId":2}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":2,"params":{"result":"(null)"}}

    Render
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"onboarding-view"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":3}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":3,"params":{"result":"(GREYElementInteraction)"}}

      ✓ should have onboarding screen (126ms)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"connect-server-button"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":4}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":4,"params":{"result":"(GREYElementInteraction)"}}

      ✓ should have "Connect to a server" (82ms)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"join-community-button"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":5}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":5,"params":{"result":"(GREYElementInteraction)"}}

      ✓ should have "Join the community" (74ms)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"create-workspace-button"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":6}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":6,"params":{"result":"(GREYElementInteraction)"}}

      ✓ should have "Create a new workspace" (83ms)
Detected file type 'PNG' from extension
Wrote screenshot to: /tmp/screenshots/screenshot-0.png
    Usage
      ✓ should navigate to create new workspace
Detected file type 'PNG' from extension
Wrote screenshot to: /tmp/screenshots/screenshot-1.png
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"join-community-button"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":7}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":7,"params":{"result":"(GREYElementInteraction)"}}

detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYCondition"},"method":"detoxConditionForElementMatched:","args":[{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"welcome-view"}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]}}]}}]}},"method":"waitWithTimeout:","args":[{"type":"CGFloat","value":60}]},"messageId":8}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":8,"params":{"result":"(null)"}}

detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"welcome-view"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":9}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":9,"params":{"result":"(GREYElementInteraction)"}}

detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYCondition"},"method":"detoxConditionForElementMatched:","args":[{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForBoth:and:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForText:","args":[{"type":"NSString","value":"Rocket.Chat"}]}},{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]}}]}}]}},"method":"waitWithTimeout:","args":[{"type":"CGFloat","value":60}]},"messageId":10}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":10,"params":{"result":"(null)"}}

detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"detoxMatcherForText:","args":[{"type":"NSString","value":"Rocket.Chat"}]}}]}},"method":"assertWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForSufficientlyVisible","args":[]}}]},"messageId":11}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=invoke (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=invokeResult (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"invokeResult","messageId":11,"params":{"result":"(GREYElementInteraction)"}}

      ✓ should navigate to join community (2327ms)
Detected file type 'PNG' from extension
Wrote screenshot to: /tmp/screenshots/screenshot-2.png
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"reactNativeReload","params":{},"messageId":-1000}
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=tester action=reactNativeReload (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=AppWillTerminateWithError (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)
detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"AppWillTerminateWithError","messageId":-10000,"params":{"threadNumber":13,"errorDetails":"Signal 11 was raised\n(\n\t0   Detox                               0x000000010c208d16 _ZL16__DTXHandleCrashP11NSExceptionP8NSNumberP8NSString + 497\n\t1   Detox                               0x000000010c208a9b _ZL17__DTXHandleSignali + 61\n\t2   libsystem_platform.dylib            0x000000011322cb5d _sigtramp + 29\n\t3   ???                                 0x000070000d6f0f50 0x0 + 123145527693136\n\t4   DTXProfiler                         0x0000000130894d58 __dtx_initialize + 15\n\t5   JavaScriptCore                      0x000000010c5193c6 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4initEPNS_9ExecStateE + 230\n\t6   JavaScriptCore                      0x000000010c5152c7 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE6createEPNS_9ExecStateEPNS_14JSGlobalObjectEPNS_9StructureEP13OpaqueJSClassPv + 295\n\t7   JavaScriptCore                      0x000000010c519dff JSObjectMake + 159\n\t8   RocketChatRN                        0x0000000109420539 _ZN5realm3jsc10ObjectWrapINS_2js10RealmClassINS0_5TypesEEEE18create_constructorEPK15OpaqueJSContext + 41\n\t9   RocketChatRN                        0x0000000109408f68 _ZN5realm2js10RealmClassINS_3jsc5TypesEE18create_constructorEPK15OpaqueJSContext + 24\n\t10  RocketChatRN                        0x0000000109408f45 RJSConstructorCreate + 21\n\t11  RocketChatRN                        0x000000010940935b RJSInitializeInContext + 139\n\t12  RocketChatRN                        0x00000001093695bf _Z21_initializeOnJSThreadU13block_pointerFP15OpaqueJSContextvE + 431\n\t13  RocketChatRN                        0x0000000109369bc1 __24-[RealmReact setBridge:]_block_invoke + 177\n\t14  Detox                               0x000000010c1fc6c9 ____dtx_performSelector_onThread_withObject_waitUntilDone_block_invoke + 20\n\t15  RocketChatRN                        0x00000001090d314e _ZNSt3__1L8__invokeIRU8__strongU13block_pointerFvvEJEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOS5_DpOS6_ + 30\n\t16  RocketChatRN                        0x00000001090d30fd _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRU8__strongU13block_pointerFvvEEEEvDpOT_ + 29\n\t17  RocketChatRN                        0x00000001090d1e51 _ZNSt3__110__function6__funcIU8__strongU13block_pointerFvvENS_9allocatorIS4_EES2_EclEv + 33\n\t18  RocketChatRN                        0x0000000109600db5 _ZNKSt3__18functionIFvvEEclEv + 53\n\t19  RocketChatRN                        0x000000010913d8c8 _ZN8facebook5react17tryAndReturnErrorERKNSt3__18functionIFvvEEE + 24\n\t20  RocketChatRN                        0x00000001090bcb30 -[RCTCxxBridge _tryAndHandleError:] + 80\n\t21  Foundation                          0x000000010d874878 __NSThreadPerformPerform + 331\n\t22  CoreFoundation                      0x000000010fb6ebe1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\n\t23  CoreFoundation                      0x000000010fb6e463 __CFRunLoopDoSources0 + 243\n\t24  CoreFoundation                      0x000000010fb68b1f __CFRunLoopRun + 1231\n\t25  CoreFoundation                      0x000000010fb68302 CFRunLoopRunSpecific + 626\n\t26  RocketChatRN                        0x00000001090bc895 +[RCTCxxBridge runRunLoop] + 1045\n\t27  Detox                               0x000000010c2001cd swz_runRunLoopThread + 188\n\t28  DTXProfiler                         0x0000000130894da9 swz_runRunLoopThread + 42\n\t29  Foundation                          0x000000010d874307 __NSThread__start__ + 1197\n\t30  libsystem_pthread.dylib             0x000000011323d2eb _pthread_body + 126\n\t31  libsystem_pthread.dylib             0x0000000113240249 _pthread_start + 66\n\t32  libsystem_pthread.dylib             0x000000011323c40d thread_start + 13\n)","queueName":"com.apple.root.default-qos.overcommit"}}

      1) should navigate to new server

  6 passing (15s)
  1 failing

  1) Onboarding
       Usage
         should navigate to new server:
     Error: the string "Signal 11 was raised\n(\n\t0   Detox                               0x000000010c208d16 _ZL16__DTXHandleCrashP11NSExceptionP8NSNumberP8NSString + 497\n\t1   Detox                               0x000000010c208a9b _ZL17__DTXHandleSignali + 61\n\t2   libsystem_platform.dylib            0x000000011322cb5d _sigtramp + 29\n\t3   ???                                 0x000070000d6f0f50 0x0 + 123145527693136\n\t4   DTXProfiler                         0x0000000130894d58 __dtx_initialize + 15\n\t5   JavaScriptCore                      0x000000010c5193c6 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4initEPNS_9ExecStateE + 230\n\t6   JavaScriptCore                      0x000000010c5152c7 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE6createEPNS_9ExecStateEPNS_14JSGlobalObjectEPNS_9StructureEP13OpaqueJSClassPv + 295\n\t7   JavaScriptCore                      0x000000010c519dff JSObjectMake + 159\n\t8   RocketChatRN                        0x0000000109420539 _ZN5realm3jsc10ObjectWrapINS_2js10RealmClassINS0_5TypesEEEE18create_constructorEPK15OpaqueJSContext + 41\n\t9   RocketChatRN                        0x0000000109408f68 _ZN5realm2js10RealmClassINS_3jsc5TypesEE18create_constructorEPK15OpaqueJSContext + 24\n\t10  RocketChatRN                        0x0000000109408f45 RJSConstructorCreate + 21\n\t11  RocketChatRN                        0x000000010940935b RJSInitializeInContext + 139\n\t12  RocketChatRN                        0x00000001093695bf _Z21_initializeOnJSThreadU13block_pointerFP15OpaqueJSContextvE + 431\n\t13  RocketChatRN                        0x0000000109369bc1 __24-[RealmReact setBridge:]_block_invoke + 177\n\t14  Detox                               0x000000010c1fc6c9 ____dtx_performSelector_onThread_withObject_waitUntilDone_block_invoke + 20\n\t15  RocketChatRN                        0x00000001090d314e _ZNSt3__1L8__invokeIRU8__strongU13block_pointerFvvEJEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOS5_DpOS6_ + 30\n\t16  RocketChatRN                        0x00000001090d30fd _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRU8__strongU13block_pointerFvvEEEEvDpOT_ + 29\n\t17  RocketChatRN                        0x00000001090d1e51 _ZNSt3__110__function6__funcIU8__strongU13block_pointerFvvENS_9allocatorIS4_EES2_EclEv + 33\n\t18  RocketChatRN                        0x0000000109600db5 _ZNKSt3__18functionIFvvEEclEv + 53\n\t19  RocketChatRN                        0x000000010913d8c8 _ZN8facebook5react17tryAndReturnErrorERKNSt3__18functionIFvvEEE + 24\n\t20  RocketChatRN                        0x00000001090bcb30 -[RCTCxxBridge _tryAndHandleError:] + 80\n\t21  Foundation                          0x000000010d874878 __NSThreadPerformPerform + 331\n\t22  CoreFoundation                      0x000000010fb6ebe1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\n\t23  CoreFoundation                      0x000000010fb6e463 __CFRunLoopDoSources0 + 243\n\t24  CoreFoundation                      0x000000010fb68b1f __CFRunLoopRun + 1231\n\t25  CoreFoundation                      0x000000010fb68302 CFRunLoopRunSpecific + 626\n\t26  RocketChatRN                        0x00000001090bc895 +[RCTCxxBridge runRunLoop] + 1045\n\t27  Detox                               0x000000010c2001cd swz_runRunLoopThread + 188\n\t28  DTXProfiler                         0x0000000130894da9 swz_runRunLoopThread + 42\n\t29  Foundation                          0x000000010d874307 __NSThread__start__ + 1197\n\t30  libsystem_pthread.dylib             0x000000011323d2eb _pthread_body + 126\n\t31  libsystem_pthread.dylib             0x0000000113240249 _pthread_start + 66\n\t32  libsystem_pthread.dylib             0x000000011323c40d thread_start + 13\n)" was thrown, throw an Error :)
      at process._tickCallback (internal/process/next_tick.js:68:7)



Detected file type 'PNG' from extension
Wrote screenshot to: /tmp/screenshots/screenshot-3.png
detox[53052] TRACE: [DetoxServer.js/MESSAGE] role=testee action=AppWillTerminateWithError (sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2)

detox[53052] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"AppWillTerminateWithError","messageId":-10000,"params":{"threadNumber":13,"errorDetails":"Signal 4 was raised\n(\n\t0   Detox                               0x000000010c208d16 _ZL16__DTXHandleCrashP11NSExceptionP8NSNumberP8NSString + 497\n\t1   Detox                               0x000000010c208a9b _ZL17__DTXHandleSignali + 61\n\t2   libsystem_platform.dylib            0x000000011322cb5d _sigtramp + 29\n\t3   ???                                 0x0911082200000001 0x0 + 653312363067342849\n\t4   Detox                               0x000000010c207f6e -[DetoxManager notifyOnCrashWithDetails:] + 293\n\t5   Detox                               0x000000010c208ddb _ZL16__DTXHandleCrashP11NSExceptionP8NSNumberP8NSString + 694\n\t6   Detox                               0x000000010c208a9b _ZL17__DTXHandleSignali + 61\n\t7   libsystem_platform.dylib            0x000000011322cb5d _sigtramp + 29\n\t8   ???                                 0x000070000d6f0f50 0x0 + 123145527693136\n\t9   DTXProfiler                         0x0000000130894d58 __dtx_initialize + 15\n\t10  JavaScriptCore                      0x000000010c5193c6 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4initEPNS_9ExecStateE + 230\n\t11  JavaScriptCore                      0x000000010c5152c7 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE6createEPNS_9ExecStateEPNS_14JSGlobalObjectEPNS_9StructureEP13OpaqueJSClassPv + 295\n\t12  JavaScriptCore                      0x000000010c519dff JSObjectMake + 159\n\t13  RocketChatRN                        0x0000000109420539 _ZN5realm3jsc10ObjectWrapINS_2js10RealmClassINS0_5TypesEEEE18create_constructorEPK15OpaqueJSContext + 41\n\t14  RocketChatRN                        0x0000000109408f68 _ZN5realm2js10RealmClassINS_3jsc5TypesEE18create_constructorEPK15OpaqueJSContext + 24\n\t15  RocketChatRN                        0x0000000109408f45 RJSConstructorCreate + 21\n\t16  RocketChatRN                        0x000000010940935b RJSInitializeInContext + 139\n\t17  RocketChatRN                        0x00000001093695bf _Z21_initializeOnJSThreadU13block_pointerFP15OpaqueJSContextvE + 431\n\t18  RocketChatRN                        0x0000000109369bc1 __24-[RealmReact setBridge:]_block_invoke + 177\n\t19  Detox                               0x000000010c1fc6c9 ____dtx_performSelector_onThread_withObject_waitUntilDone_block_invoke + 20\n\t20  RocketChatRN                        0x00000001090d314e _ZNSt3__1L8__invokeIRU8__strongU13block_pointerFvvEJEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOS5_DpOS6_ + 30\n\t21  RocketChatRN                        0x00000001090d30fd _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRU8__strongU13block_pointerFvvEEEEvDpOT_ + 29\n\t22  RocketChatRN                        0x00000001090d1e51 _ZNSt3__110__function6__funcIU8__strongU13block_pointerFvvENS_9allocatorIS4_EES2_EclEv + 33\n\t23  RocketChatRN                        0x0000000109600db5 _ZNKSt3__18functionIFvvEEclEv + 53\n\t24  RocketChatRN                        0x000000010913d8c8 _ZN8facebook5react17tryAndReturnErrorERKNSt3__18functionIFvvEEE + 24\n\t25  RocketChatRN                        0x00000001090bcb30 -[RCTCxxBridge _tryAndHandleError:] + 80\n\t26  Foundation                          0x000000010d874878 __NSThreadPerformPerform + 331\n\t27  CoreFoundation                      0x000000010fb6ebe1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17\n\t28  CoreFoundation                      0x000000010fb6e463 __CFRunLoopDoSources0 + 243\n\t29  CoreFoundation                      0x000000010fb68b1f __CFRunLoopRun + 1231\n\t30  CoreFoundation                      0x000000010fb68302 CFRunLoopRunSpecific + 626\n\t31  RocketChatRN                        0x00000001090bc895 +[RCTCxxBridge runRunLoop] + 1045\n\t32  Detox                               0x000000010c2001cd swz_runRunLoopThread + 188\n\t33  DTXProfiler                         0x0000000130894da9 swz_runRunLoopThread + 42\n\t34  Foundation                          0x000000010d874307 __NSThread__start__ + 1197\n\t35  libsystem_pthread.dylib             0x000000011323d2eb _pthread_body + 126\n\t36  libsystem_pthread.dylib             0x0000000113240249 _pthread_start + 66\n\t37  libsystem_pthread.dylib             0x000000011323c40d thread_start + 13\n)","queueName":"com.apple.root.default-qos.overcommit"}}

detox[53052] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onAfterAll()
detox[53052] DEBUG: [DetoxServer.js/DISCONNECT] role=tester, sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2
detox[53052] DEBUG: [DetoxServer.js/DISCONNECT] role=testee, sessionId=f5a29f94-ac58-7ee7-076c-fb8c7dab7fe2
detox[53050] ERROR: [cli.js] Error: Command failed: node_modules/.bin/mocha --opts e2e/mocha.opts --configuration ios.sim.debug --loglevel trace --grep :android: --invert --artifacts-location "artifacts/ios.sim.debug.2019-05-16 21-56-43Z" "e2e"

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (11 by maintainers)

Most upvoted comments

Thanks, I will take a look.

@LeoNatan Sure. I’ll do it in a few.

I wonder if it’s not the same as https://github.com/wix/DetoxInstruments/issues/44. When I saw that live, it looked to me like a bug in the trampoline routine they use. I’ll be investigating this soon.