clean-expo-detox-testing icon indicating copy to clipboard operation
clean-expo-detox-testing copied to clipboard

iOS simulator Expo Go app closes, to open "Exponent.app," then sit there?

Open ckcollab opened this issue 2 years ago • 2 comments

Thanks so much for his example. I got this working using the bare workflow some time ago, thanks for posting this!

I'm trying to use this with Exponent.app with the managed workflow and I'm getting this weird behavior where the app opens to this screen: image

I am wondering if I need to pass some extra command line parameter to Exponent.app so it knows which URL to hit? But It's strange, because Metro loads up the app properly no problem.

e2e/config.json

{
    "maxWorkers": 1,
    "testEnvironment": "./environment",
    "testRunner": "jest-circus/runner",
    "testTimeout": 120000,
    "testRegex": "\\.e2e\\.js$",
    "reporters": ["detox/runners/jest/streamlineReporter"],
    "verbose": true
}

.detoxrc.json

{
  "testRunner": "jest",
  "runnerConfig": "e2e/config.json",
  "skipLegacyWorkersInjection": true,
  "apps": {
    "ios": {
      "type": "ios.app",
      "binaryPath": "e2e/bin/Exponent.app"
    }
  },
  "devices": {
    "simulator": {
      "type": "ios.simulator",
      "device": {
        "type": "iPhone 11"
      }
    }
  },
  "configurations": {
    "ios": {
      "device": "simulator",
      "app": "ios"
    }
  }
}

package.json

  "detox": {
    "configurations": {
      "ios.sim": {
        "binaryPath": "bin/Exponent.app",
        "type": "ios.simulator",
        "name": "iPhone 11"
      }
    }
  }

Relevant environment info, I think:

❯ npx expo-env-info             

  expo-env-info 1.0.4 environment info:
    System:
      OS: macOS 12.4
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v16.15.1/bin/yarn
      npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
      Watchman: 2022.01.24.00 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.10.1 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
      Android SDK:
        API Levels: 21, 28, 29, 30
        Build Tools: 28.0.3, 29.0.2, 29.0.3
        System Images: android-24 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: Chipmunk 2021.2.1 Patch 1 Chipmunk 2021.2.1 Patch 1
      Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^45.0.0 => 45.0.5 
      react: 17.0.2 => 17.0.2 
      react-dom: 17.0.2 => 17.0.2 
      react-native: 0.68.2 => 0.68.2 
      react-native-web: 0.17.7 => 0.17.7 
    npmGlobalPackages:
      expo-cli: 5.4.12
    Expo Workflow: managed

Appreciate any help!

ckcollab avatar Jul 01 '22 02:07 ckcollab

Hello, have you found a solution ? I'm getting the same error, app URL can not be found..

alexguillon avatar Oct 18 '22 14:10 alexguillon

Actually kind of -- if you manually click on the URL or anything, can you make progress? One of my engineers found a way to "click" the right URL. I can try to find that code, if that's where you're stuck

ckcollab avatar Oct 18 '22 20:10 ckcollab