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.

crashes on iOS (solved)

See original GitHub issue

It took me some experimenting before I got this working on iOS without crashes.

So to clearify the readme (which is correct):

The Info.plist is to be found in <root app dir>/ios/<app name>/Info.plist

Add the keys in the list between the <dict> and </dict> tags, like:

<key>NSPhotoLibraryUsageDescription</key>
<string>Select an existing photo for us</string>
<key>NSCameraUsageDescription</key>
<string>Take a photo for us</string>

If you have a simulator running, close everything en then run it again: react-native run-ios

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Gyscommented, Jan 22, 2017

@marcshilling

Yes, this is more or less in the readme But there are two Info.plist files in a react native project, so I think its useful to mention which one. Plus an example of how to add them; to me as a non-Apple programmer it was not clear what to make of ‘Add the NSPhotoLibraryUsageDescription, NSCameraUsageDescription, and NSMicrophoneUsageDescription (if allowing video) keys’. Took me a moment to understand these are really <key> entries and that they need a <string> for value. Just want to save time for others.

1reaction
marcshillingcommented, Mar 12, 2017

@rishiankush your Xcode project contains a file Info.plist. This is a simple key-value store. You just need to add the keys NSPhotoLibraryUsageDescription, etc, with a string value that you want displayed to the user for why you are requesting that permission. For example: NSPhotoLibraryUsageDescription : "We need access to your photo library so that we can select photos"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix iPhone Apps Keep Crashing after iOS 16.1.2 Update
Launch App Store from iPhone home screen – Tap on Update – on the screen, you can be seeing available Update app, if...
Read more >
9 Fixes for When Your iPhone Apps Keep Crashing
9 Fixes for When Your iPhone Apps Keep Crashing · 2. Close and Relaunch the App · 3. Update the App · 4....
Read more >
6 Ways to Fix iPhone 13 and iOS 15 Apps Crashing - Dr.Fone
Part 1: Restart iPhone to fix iPhone crashing · Part 2: Clear memory and storage on your iPhone · Part 3: Quit and...
Read more >
iPhone apps crashing issues? 6 Easy ways to fix it - iGeeksBlog
1. Close and re-open the iOS app · 2. Uninstall and re-install the crashing app on iPhone · 3. Check for app updates...
Read more >
[Solved] How to Fix iPhone Keeps Crashing iOS 16 - UltFone
Part 2: Common Ways to Fix iPhone Keeps Crashing iOS 16 · Way 1: Try to Soft Reboot Your iPhone · Way 2:...
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