[英]Flutter ios app submission: Missing Purpose String in Info.plist
I'm trying to submit my Flutter app for IOS.我正在尝试为 IOS 提交我的 Flutter 应用程序。 When I submit the app I get a mail with the info I need to add this to my info.plist
当我提交应用程序时,我收到一封邮件,其中包含我需要将其添加到我的 info.plist 的信息
NSCalendarsUsageDescription
NSAppleMusicUsageDescription
NSSpeechRecognitionUsageDescription
I think it's really weird I need to add this because I don't need any of this (and I'm not using it in my app)...我认为我需要添加这个真的很奇怪,因为我不需要任何这些(而且我没有在我的应用程序中使用它)......
How is this possible?这怎么可能?
This is my pubspec yaml这是我的 pubspec yaml
cupertino_icons: ^0.1.2
firebase_core: ^0.4.3+1
firebase_auth: ^0.15.3
cloud_firestore: ^0.12.11
firebase_database: ^3.1.1
cloud_functions: ^0.4.1+6
firebase_messaging: ^6.0.9
firebase_storage: ^3.1.0
google_sign_in: ^4.1.0
flutter_facebook_login: ^2.0.1
geolocator: ^5.1.5
shared_preferences: ^0.5.6
url_launcher: ^5.4.1
rflutter_alert: ^1.0.3
font_awesome_flutter: ^8.5.0
flutter_picker: ^1.1.0
uuid: ^2.0.4
image_picker: ^0.6.2+3
path_provider: ^1.5.1
image: ^2.1.4
flutter_datetime_picker: ^1.2.8
intl: ^0.16.0
native_contact_picker: ^0.0.6
flutter_spinkit: ^4.1.1+1
transparent_image: ^1.0.0
connectivity: ^0.4.6+1
flare_splash_screen: ^2.1.4
algolia: ^0.1.7
http: ^0.12.0+2
avatar_glow: ^1.1.0
rxdart: ^0.22.2
auto_size_text: ^2.1.0
camera: ^0.5.7+2
video_player: ^0.10.5
story_view: ^0.11.0
image_crop: ^0.3.1
file_picker: ^1.4.3+1
pdf_viewer_plugin: ^1.0.0+2
flutter_background_geolocation: ^1.4.5
location_permissions: ^2.0.3
image_downloader: ^0.19.1
permission_handler: ^4.0.0
google_maps_flutter: ^0.5.21+15
cached_network_image: ^2.0.0-rc
geoflutterfire: ^2.0.3+5
apple_sign_in: ^0.1.0
device_info: ^0.4.1+4
image_cropper: ^1.1.2
screenshot: ^0.1.1
Thanks in advance!提前致谢!
I came across the same issue...我遇到了同样的问题...
I'm using the permission_handler
dependency.我正在使用
permission_handler
依赖项。
Please carefully read the setup for iOS ( Podfile and Info.plist )请仔细阅读 iOS 设置( Podfile和Info.plist )
https://pub.dev/packages/permission_handler https://pub.dev/packages/permission_handler
And pay special attention to this:并特别注意这一点:
Remove the # character in front of the permission you do not want to use.删除您不想使用的权限前面的 # 字符。 For example if you don't need access to the calendar make sure the code looks like this:
例如,如果您不需要访问日历,请确保代码如下所示:
## dart: PermissionGroup.calendar
'PERMISSION_EVENTS=0',
That's quite a big list of dependencies, so it's very likely that some of these require it, even though the code to request these permissions it will never be run.这是一个相当大的依赖项列表,因此很可能其中一些需要它,即使请求这些权限的代码永远不会运行。 Apple just notices the code in the app, but can't figure out that it will not be executed.
苹果只是注意到应用程序中的代码,但无法弄清楚它不会被执行。
If you're certain that these permissions will never be requested, you can add any text for the usage descriptions in the Info.plist, for example "Required usage description for a Flutter dependency".如果您确定永远不会请求这些权限,您可以在 Info.plist 中为使用说明添加任何文本,例如“Flutter 依赖项的必需使用说明”。 It shouldn't show up to the user, but at least the developers will know why this is filled in.
它不应该显示给用户,但至少开发人员会知道为什么要填写它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.