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

Managed workflow? Turtle-cli builds?

Open ckcollab opened this issue 3 years ago • 1 comments

I used turtle to build a .tar.gz which i extracted to myapp.app

$ turtle build:ios --type simulator --username '<EXPO USERNAME>' --password '<EXPO PASSWORD>'

I've changed my detoxrc like so:

  "apps": {
    "ios": {
      "type": "ios.app",
      "binaryPath": "/Users/ckcollab/expo-app/myapp.app"
    }
  },

However when starting detox, I get an error, presumably about a bad app build:

❯ yarn detox test --configuration ios
yarn run v1.22.11
$ /Users/ckcollab/src/myapp/node_modules/.bin/detox test --configuration ios
detox[54020] INFO:  [test.js] DETOX_CONFIGURATION="ios" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1630920245694 DETOX_USE_CUSTOM_LOGGER=true jest --config e2e/config.json --testNamePattern '^((?!:android:).)*$' e2e
detox[54021] ERROR: field CFBundleIdentifier not found inside Info.plist of app binary at /Users/ckcollab/expo-app/myapp.app

Am I pretty far off, or am I using turtle/detox/expo in approximately the right way? Appreciate any help, hopefully dumb questions like this help the next guy down the line!

ckcollab avatar Sep 06 '21 09:09 ckcollab

I have no idea about turtle building actually. But I'll keep this issue open if someone else can help.

It could be that Detox can't find your app file under the given path, resulting in the CFBundleIdentifier not found inside Info.plist of app binary.

Try checking file outputs/paths of your commands.

fschoenfeldt avatar Sep 16 '21 10:09 fschoenfeldt