Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 78676d8

Browse files
Xcode can't parse plist file #771
1 parent c543b53 commit 78676d8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/ML_KIT.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ In case you want to detect images from the camera, add these to your app resourc
2424
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
2525
```
2626
27+
## Required iOS permission
28+
In case you're using the camera on iOS, open `iOS/Info.plist` in your app resources folder,
29+
and add this somewhere in the file (if it's not already there):
30+
31+
```xml
32+
<key>NSCameraUsageDescription</key>
33+
<string>Your reason here</string> <!-- better change this 😎 -->
34+
```
35+
2736
## ML Kit Features
2837
There are two ways of using ML Kit:
2938

src/platforms/ios/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<plist version="1.0">
44
<dict>
55
<key>NSCameraUsageDescription</key>
6-
<string/>
6+
<string> </string>
77
</dict>
88
</plist>

0 commit comments

Comments
 (0)