ios - Flutter ios应用程序提交: Missing Purpose String in Info. plist

标签 ios xcode flutter

我正在尝试提交适用于 IOS 的 Flutter 应用程序。当我提交应用程序时,我收到一封包含信息的邮件,我需要将其添加到我的 info.plist

NSCalendarsUsageDescription
NSAppleMusicUsageDescription
NSSpeechRecognitionUsageDescription

我认为我需要添加这个真的很奇怪,因为我不需要任何这些(而且我没有在我的应用程序中使用它)...

这怎么可能?

这是我的 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

提前致谢!

最佳答案

我也遇到了同样的问题...

我正在使用 permission_handler 依赖项。

请仔细阅读 iOS 的设置(PodfileInfo.plist)

https://pub.dev/packages/permission_handler

并特别注意这一点:

删除您不想使用的权限前面的 # 字符。 例如,如果您不需要访问日历,请确保代码如下所示:

## dart: PermissionGroup.calendar
'PERMISSION_EVENTS=0',

**** 2021 年 9 月 29 日更新 --(版本 > 8.0.0 的警告)

permission_handler版本 8 为 iOS 引入了一些重大更改(配置已翻转)

作者说:

we have changed the default behaviour of how permissions are treated in version 8.0.0

Note that specifically enabling permissions is only supported from version 8.0.0. In versions before 8.0.0 the logic was switch around and permissions where enabled by default and you had to explicitly disable permission in your podfile.

Author reference

See Changelog version 8.0.0

请仔细阅读所有 iOS 设置说明。

关于ios - Flutter ios应用程序提交: Missing Purpose String in Info. plist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59604058/

相关文章:

ios - 如何更新框架的高度?

ios - 无法在 TTTAttributedLabel 上设置 linkAttributes

ios - 签名(调试)不包括 beta-reports-active 权利

objective-c - 构建一个使用 cocoapods 的可分发静态库

flutter - 如何使用 ListView 显示来自 Bloc 的列表流

google-maps - Flutter -> 在后台加载谷歌地图

ios - 无效的代码签名权利。更改捆绑ID后

ios - 只允许 2 个用户从公共(public)类读取一个对象

Xcode 4.5 构 build 备 IOS 5.1

android - 未处理的异常 : Bad state: Insecure HTTP is not allowed by platform - usesClearTextTraffic not worked