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

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

Closed
gabeDevlift opened this issue Aug 30, 2019 · 6 comments
Closed

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

gabeDevlift opened this issue Aug 30, 2019 · 6 comments
Labels
Bug Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@gabeDevlift
Copy link

gabeDevlift commented Aug 30, 2019

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:

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.60 and verify if the issue still exists.

The "Resolution: Old Version" label will be removed automatically once you edit your original post with the results of running `react-native info` on a project using the latest release.

@gabeDevlift
Copy link
Author

Re bot: I should have mentioned that I tried this before with the newer versions of all libraries, but it gave the same errors: I've updated my original post to include all my upgraded system info.
The device log now says:

Aug 30 14:36:49 launchd_sim[7026]: BUG in libdispatch client: mach_recv, monitored resource vanished before the source cancel handler was invoked { 0x7f95439238b0[source], ident: 261243 / 0x3fc7b, handler: 0x103de62a4 }

and then repeats the following over and over:

Aug 30 14:36:51 com.apple.CoreSimulator.SimDevice.839BF66F-7FB8-4F77-B82B-F5F659CEF787[7026] (com.apple.securityuploadd): Service only ran for 6 seconds.

@stale
Copy link

stale bot commented Nov 28, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Nov 28, 2019
@gabeDevlift
Copy link
Author

Just an update, this issue is still the same.

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Nov 28, 2019
@stale
Copy link

stale bot commented Feb 27, 2020

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Feb 27, 2020
@stale
Copy link

stale bot commented Mar 5, 2020

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Mar 5, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Mar 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants