It ran on expo client, but crashed after splash screen when launched on iOS simulator after build.

Previously good projects now crash after a splash screen. It doesn’t seem to be a JS problem, so I created a new project and tried it on the iOS simulator, which caused a similar crash.

I tried using the following procedure.

  1. expo init testApp

  2. Select ‘tabs’ to create a project

  3. Add “bundleIdentifier” to app.json

  4. expo build: ios -t simulator

  5. tar -xvzf .tar.gz

  6. xcrun simctl install booted .app

  7. xcrun simctl launch booted

setting information and error log
bundleIdentifier is hiding

▼app.json

{
  "expo": {
    "name": "Tab Navigation Template",
    "slug": "testApp",
    "privacy": "public",
    "sdkVersion": "36.0.0",
    "platforms": [
      "ios",
      "android",
      "web"
    ],
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "scheme": "myapp",
    "splash": {
      "image": "./assets/images/splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "***.*****.*****"
    }
  }
}

▼package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web",
    "eject": "expo eject",
    "test": "jest --watchAll"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/vector-icons": "~10.0.0",
    "@react-native-community/masked-view": "0.1.5",
    "@react-navigation/bottom-tabs": "^5.0.0",
    "@react-navigation/native": "^5.0.0",
    "@react-navigation/stack": "^5.0.0",
    "@react-navigation/web": "~1.0.0-alpha.9",
    "expo": "~36.0.0",
    "expo-asset": "~8.0.0",
    "expo-constants": "~8.0.0",
    "expo-font": "~8.0.0",
    "expo-web-browser": "~8.0.0",
    "react": "~16.9.0",
    "react-dom": "~16.9.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz",
    "react-native-gesture-handler": "~1.5.0",
    "react-native-safe-area-context": "0.6.0",
    "react-native-screens": "2.0.0-alpha.12",
    "react-native-web": "~0.11.7"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "babel-preset-expo": "~8.0.0",
    "jest-expo": "~36.0.1"
  },
  "private": true
}

▼iOS Simulator Debug->Open System Log

Feb 19 13:11:19 USER-MacBook-Pro com.apple.CoreSimulator.SimDevice.D52D48F4-1CDA-4E75-A879-5DCD1C0A2157[3724] (UIKitApplication:***.*****.*****[9d25][rb-legacy][4446]): Could not find and/or execute program specified by service: 2: No such file or directory: /Users/USER/Library/Developer/CoreSimulator/Devices/D52D48F4-1CDA-4E75-A879-5DCD1C0A2157/data/Containers/Bundle/Application/945084E6-B0F0-4CA2-AB47-98EF02E3FA69/testApp.app/ComWebbiboMonocal
Feb 19 13:11:19 USER-MacBook-Pro syslogd[3726]: ASL Sender Statistics
Feb 19 13:11:19 USER-MacBook-Pro com.apple.CoreSimulator.SimDevice.D52D48F4-1CDA-4E75-A879-5DCD1C0A2157[3724] (UIKitApplication:***.*****.*****[9d25][rb-legacy][4446]): Service setup event to handle failure and will not launch until it fires.
Feb 19 13:11:19 USER-MacBook-Pro com.apple.CoreSimulator.SimDevice.D52D48F4-1CDA-4E75-A879-5DCD1C0A2157[3724] (UIKitApplication:***.*****.*****[9d25][rb-legacy][4446]): Service exited with abnormal code: 78

▼/library/logs/diagnosticreports

Process:               ComWebbiboMonocal [3912]
Path:                  /Users/USER/Library/Developer/CoreSimulator/Devices/D52D48F4-1CDA-4E75-A879-5DCD1C0A2157/data/Containers/Bundle/Application/945084E6-B0F0-4CA2-AB47-98EF02E3FA69/testApp.app/ComWebbiboMonocal
Identifier:            ComWebbiboMonocal
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [3724]
Responsible:           SimulatorTrampoline [3598]
User ID:               501

Date/Time:             2020-02-19 12:06:55.152 +0900
OS Version:            Mac OS X 10.15.2 (19C57)
Report Version:        12
Anonymous UUID:        4F0A0487-38D4-11AC-87A1-4F3DC1345134


Time Awake Since Boot: 3100 seconds

System Integrity Protection: enabled

Crashed Thread:        Unknown

Exception Type:        EXC_CRASH (SIGKILL)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SPRINGBOARD, Code 0x8badf00d

Backtrace not available

Unknown thread crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x00007ffedfe3c500
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000000
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
  rip: 0x000000011d810000  rfl: 0x0000000000000200  cr2: 0x0000000000000000
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     0


Binary images description not available


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 2408
    thread_create: 0
    thread_set_state: 0

Can you tell me how I can solve it

I just tried to reproduce this using the exact steps that you provided and it worked for me. You can try the same build at https://expo.io/artifacts/dbe42ee3-5554-42ab-8de8-d5924acd5b6f

Is it possible that the state of your simulator is somehow bad? You could try to do “Erase All Content And Settings” and then try it again.

I tried test-tabs.app after I do “Erase All Content And Settings”
but it didn’t work.

Simulator is
iPhone 8 (iOS 13.3)
iPhone 11 (iOS 13.3)

/library/logs/diagnosticreports

Process:               ExampleTestLol [5375]
Path:                  /Users/USER/Library/Developer/CoreSimulator/Devices/D52D48F4-1CDA-4E75-A879-5DCD1C0A2157/data/Containers/Bundle/Application/AD8F5F7A-2B6E-498B-8A03-7268687809A9/test-tabs.app/ExampleTestLol
Identifier:            ExampleTestLol
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        launchd_sim [5227]
Responsible:           SimulatorTrampoline [3598]
User ID:               501

Date/Time:             2020-02-19 20:22:20.235 +0900
OS Version:            Mac OS X 10.15.2 (19C57)
Report Version:        12
Anonymous UUID:        4F0A0487-38D4-11AC-87A1-4F3DC1345134

Sleep/Wake UUID:       0C779A5E-B7D5-4299-8866-2381715C2BC0

Time Awake Since Boot: 9800 seconds
Time Since Wake:       2100 seconds

System Integrity Protection: enabled

Crashed Thread:        Unknown

Exception Type:        EXC_CRASH (SIGKILL)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SPRINGBOARD, Code 0x8badf00d

Backtrace not available

Unknown thread crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x00007ffee7d99508
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000000
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
  rip: 0x0000000117173000  rfl: 0x0000000000000200  cr2: 0x0000000000000000
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     0


Binary images description not available


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 7322
    thread_create: 0
    thread_set_state: 0

Is there any other information I should provide?

from your original message:

Could not find and/or execute program specified by service: 2: No such file or directory: /Users/USER/Library/Developer/CoreSimulator/Devices/D52D48F4-1CDA-4E75-A879-5DCD1C0A2157/data/Containers/Bundle/Application/945084E6-B0F0-4CA2-AB47-98EF02E3FA69/testApp.app/ComWebbiboMonocal

Service setup event to handle failure and will not launch until it fires.
Service exited with abnormal code: 78

it looks like this could be a system permissions issue (google the last line of the error msg). you could try using this xattr command: iOS Simulator Builds damaged error on MacOS Catalina · Issue #1197 · expo/expo-cli · GitHub

It worked when using xattr command.
The new project app that I created worked.

Check the JS of the application under development again.
The road to solution is near.

Thank you so much.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.