|
@@ -237,7 +237,7 @@ class _MyAppState extends State<MyApp> {
|
|
|
flutter run
|
|
|
```
|
|
|
|
|
|
-#### 2.2.2 IOS
|
|
|
+#### 2.2.2 iOS
|
|
|
|
|
|
1. Create a Flutter project called `example` with the `flutter` CLI:
|
|
|
|
|
@@ -276,7 +276,7 @@ open ios/Podfile
|
|
|
|
|
|
```diff
|
|
|
- platform :ios, '9.0'
|
|
|
-+ platform :ios, '11.0'
|
|
|
++ platform :ios, '10.0'
|
|
|
...
|
|
|
target 'Runner' do
|
|
|
use_frameworks!
|
|
@@ -371,13 +371,35 @@ class _MyAppState extends State<MyApp> {
|
|
|
+ - pdfs/
|
|
|
```
|
|
|
|
|
|
-11. Start your Android emulator, or connect a device.
|
|
|
+11. To protect user privacy,
|
|
|
+
|
|
|
+ To protect user privacy, before accessing the sensitive privacy data, you need to find the "***Info\***" configuration in your iOS 10.0 or higher iOS project and configure the relevant privacy terms as shown in the following picture.
|
|
|
+
|
|
|
+ 
|
|
|
+
|
|
|
+ ```objective-c
|
|
|
+ <key>NSCameraUsageDescription</key>
|
|
|
+ <string>Your consent is required before you could access the function.</string>
|
|
|
+
|
|
|
+ <key>NSMicrophoneUsageDescription</key>
|
|
|
+ <string>Your consent is required before you could access the function.</string>
|
|
|
+
|
|
|
+ <key>NSPhotoLibraryAddUsageDescription</key>
|
|
|
+ <string>Your consent is required before you could access the function.</string>
|
|
|
+
|
|
|
+ <key>NSPhotoLibraryUsageDescription</key>
|
|
|
+ <string>Your consent is required before you could access the function.</string>
|
|
|
+ ```
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+12. Start your Android emulator, or connect a device.
|
|
|
|
|
|
```bash
|
|
|
flutter emulators --launch apple_ios_simulator
|
|
|
```
|
|
|
|
|
|
-12. Run the app with:
|
|
|
+13. Run the app with:
|
|
|
|
|
|
```bash
|
|
|
flutter run
|