Skip to content

App crashes on iOS emulator, but runs fine from XCode #26275

Closed
@gabeDevlift

Description

@gabeDevlift

When I run my app with react-native run-ios, the splash screen appears, but then the app closes, with no error message. My Terminal shows "Loading dependency graph, done", but doesn't show any of the progress bars after that. When I run it from XCode, everything works fine. I checked the system log for the emulator (iPhone X) and here are some of the messages it showed:

Aug 30 12:52:11 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.securityuploadd): Service only ran for 7 seconds. Pushing respawn out by 3 seconds

Aug 30 12:51:27 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.nanoregistryd): Unknown key for Boolean: TransactionTimeLimitEnabled

Aug 30 12:51:32 com.apple.accessibility.AccessibilityUIServer[1281]: assertion failed: 18G95 16B91: libxpc.dylib + 79599 [F7D4B188-D5C2-3E5E-BB76-BC7C6A368166]: 0x7d

Aug 30 12:51:27 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.syslogd): Please switch away from OnDemand to KeepAlive.

Aug 30 12:51:27 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.mediaartworkd): Unknown ProcessType: AdaptiveUtility

Aug 30 12:51:27 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.xpc.launchd.domain.system): com.apple.mobiletimerd (lint): Invalid type for a LaunchEvent stream, should be a dictionary (stream/type): com.apple.alarm/bool

Aug 30 12:51:27 diagnosticd[1242]: Posting empty stream filter

Aug 30 12:51:27 diagnosticd[1242]: Posting stream filter: "{
global = 30064771081;
}"

Aug 30 12:51:27 diagnosticd[1242]: System mode client started - diagnosticd (1242) - mode: 0x9, filter: ""

Aug 30 12:51:31 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.xpc.launchd.domain.system): Service "com.apple.rapportd" tried to register for endpoint "com.apple.private.alloy.nearby-idswake" already registered by owner: com.apple.sharingd

Aug 30 12:51:36 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.icloud.fmfd[1341]): Could not find and/or execute program specified by service: 2: No such file or directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/fmfd

Aug 30 12:51:36 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.icloud.fmfd[1341]): Service setup event to handle failure and will not launch until it fires.
Aug 30 12:51:36 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.icloud.fmfd[1341]): Service exited with abnormal code: 78
Aug 30 12:51:38 SpringBoard[1225]: assertion failed: 18G95 16B91: libxpc.dylib + 79599 [F7D4B188-D5C2-3E5E-BB76-BC7C6A368166]: 0x7d
Aug 30 12:51:39 nsurlsessiond[1278]: DEPRECATED USE in libdispatch client: Setting timer interval to 0 requests a 1ns timer, did you mean FOREVER (a one-shot timer)?; set a breakpoint on _dispatch_bug_deprecated to debug

Aug 30 12:52:12 diagnosticd[1242]: unsupported XPC object: OS_xpc_dictionary

Aug 30 12:52:47 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[1208] (com.apple.CloudDocs.MobileDocumentsFileProvider[2207]): assertion failed: 18G95: launchd_sim + 63617 [8FCDFE7F-7FAD-3CC8-9136-53BD80F7102D]: 0x16

Aug 30 12:54:37 launchd_sim[1208]: BUG in libdispatch client: mach_recv, monitored resource vanished before the source cancel handler was invoked { 0x7fe88891dae0[source], ident: 20359 / 0x4f87, handler: 0x105a2d2a4 }

React Native version:

System:
OS: macOS 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
Memory: 1.97 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.9.1 - ~/.nvm/versions/node/v12.9.1/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.10.2 - ~/.nvm/versions/node/v12.9.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.9.0 => 16.9.0
react-native: ^0.60.5 => 0.60.5

Steps To Reproduce

  1. Navigate to root of project
  2. react-native run-ios
  3. Observe Splash screen appear in emulator and "Loading Dependency Graph, done..." appear in console.
  4. App closes, emulator stays open, "Loading Dependency Graph, done..." remains on screen

Describe what you expected to happen:

Ordinarily the splash screen appears, "Loading Dependency Graph, done..." appears in the console, and then 2-3 green progress bars fill up. As they're filling, a progress numbers (in %) fills up at the top of the emulator. After the progress reaches 100%, the splash screen disappears and the app runs as normal.

Snack, code example, screenshot, or link to a repository:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPlatform: iOSiOS applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions