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

Launching App #1

Open
tcasey opened this issue Dec 4, 2017 · 0 comments
Open

Launching App #1

tcasey opened this issue Dec 4, 2017 · 0 comments

Comments

@tcasey
Copy link

tcasey commented Dec 4, 2017

I have my e2e test structured just like your example here (only difference is I'm using my Exponent.app) but the issue I'm running into is when I run detox test it installs my app into the simulator & then gets into what looks like an infinite loop of attempting to relaunch the app.

System logs show: (UIKitApplication:com.vivintsolar.hea[0xb217][36260][36509]): Program specified by service does not contain any valid architectures for this system.

Any ideas or insight into why this might be or if I'm doing anything wrong?

package.json

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

e2e/firstTest.spec.js

const { reloadApp } = require('detox-expo-helpers');

describe('Example', () => {
  beforeEach(async () => {
    await reloadApp();
  });

  it('should have welcome screen', async () => {
    await expect(element(by.label('Login'))).toBeVisible();
  });
});

e2e/init.js

require('babel-polyfill');
const detox = require('detox');
const config = require('../package.json').detox;

before(async () => {
  await detox.init(config);
});

after(async () => {
  await detox.cleanup();
});

versions

detox: 6.0.2
detox-expo-helpers: 0.2.0
expo: 23.0.0
node: 8.6.0

(This is a standalone app that's built with CRNA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant