question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XCode 11 Beta App Launch Crash

See original GitHub issue

React Native version: “react”: “16.8.3”, “react-native”: “0.59.8”

No other dependency added.

Steps To Reproduce

  1. Create a fresh project with react-native init ProjectName
  2. Open iOS project in XCode 11 beta & run your project.
  3. npm start
  4. App crash with -

Unknown argument type ‘attribute’ in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type.

Error Log from XCode -

Exception ‘*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 … 0]’ was thrown while invoking getCurrentAppState on target AppState with params ( 2, 3 )

Describe what you expected to happen: App should not get crash.

Snack, code example, or link to a repository:

Adding a screenshot for more clarification below. Screenshot 2019-06-05 at 5 22 00 PM

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:69
  • Comments:25 (1 by maintainers)

github_iconTop GitHub Comments

386reactions
saudahmedcommented, Sep 23, 2019

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

44reactions
elinahovakimyancommented, Sep 23, 2019

I solved the issue by upgrading react-native to 0.59.9 version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xcode 11 beta 4 crashes on startup… | Apple Developer Forums
After update the Xcode 11 to beta 4, I can't to start it. All time I try it chases. I am using Catalina...
Read more >
Xcode 14 beta 5 cause crash on working app - Stack Overflow
We have been trying to run our app to prepare for iOS 16 but so far no luck. The app runs perfectly in...
Read more >
App distributed via TestFlight crashes on launch - Using Swift
The app runs fine in the simulator and on a device when launched directly from Xcode. When installed via TestFlight, the app crashes...
Read more >
Firebase Apple SDK Release Notes - Google
Fixed rare crash on launch due to out-of-bounds exception in FirebaseCore (#10025). Cloud Firestore. Fixed a crash during app start (#9985, #10018).
Read more >
App Center Crashes for iOS - Microsoft Learn
Collecting crashes works for both beta and live apps, i.e. those submitted to ... you can check if the app crashed in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found