crashes on iOS (solved)
See original GitHub issueIt 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:
- Created 7 years ago
- Reactions:7
- Comments:11 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
@rishiankush your Xcode project contains a file
Info.plist
. This is a simple key-value store. You just need to add the keysNSPhotoLibraryUsageDescription
, 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"