ExpoKit running .app file


I am reviewing some spike work we did to use ExpoKit with Detox. What we are seeing is that the tests fail and that seems to be because the app fails. From what I am reviewing I see:

  1. Detox is setup to build a .app file
  2. wix applesimutils will install the .app on the simulator
  3. ExpoKit is trying to connect to an expo cli and fails

The build command i see is this: xcodebuild -workspace ios/myApp.xcworkspace -scheme myApp -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build

I want to know how a .app works with expoKit and when does expo try to connect to an expo cli and when will it load a js bundle like it normally would for a production app?