ios问题记录

背景:

本地xocode 上传文件到 testflight,显示是上传成功了的。 但是网页中 testflight 中并没有上传的版本。查看邮件 发现下面的

Please correct the following issues and upload a new binary to App Store Connect.

ITMS-90683: Missing purpose string in Info.plist - Your app's code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access. The Info.plist file for the "Runner.app" bundle should contain a NSAppleMusicUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. For details, visit: Requesting access to protected resources | Apple Developer Documentation.

Though you are not required to fix the following issues, we wanted to make you aware of them:

ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the 'aps-environment' entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the 'aps-environment' entitlement. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see Local and Remote Notification Programming Guide: Configuring Remote Notification Support.

Apple Developer Relations

在ios中加入 NSAppleMusicUsageDescription key

解决问题一、 ITMS-90683: Missing purpose string in Info.plist NSAppleMusicUsageDescription

因为程序中有获取媒体库的功能

加入下面的

<key>NSAppleMusicUsageDescription</key>

<string>App 需要您的同意,才能访问媒体资料库</string>

解决问题二、ITMS-90078: Missing Push Notification Entitlement

因为程序中有推送的功能

<key>UIBackgroundModes</key>

<array>

<string>fetch</string>

<string>remote-notification</string>

</array>

相关推荐
爱吃大芒果7 小时前
Flutter 主题与深色模式:全局样式统一与动态切换
开发语言·javascript·flutter·ecmascript·gitcode
小a杰.9 小时前
Flutter 进阶:构建高性能跨平台应用的实践与技巧
flutter
胖虎19 小时前
SwiftUI 页面作为一级页面数据被重置问题分析
ios·swiftui·swift·state·observedobject·stateobject·swiftui页面生命周期
巴拉巴拉~~13 小时前
Flutter 通用轮播图组件 BannerWidget:自动播放 + 指示器 + 全场景适配
windows·flutter·microsoft
ujainu小13 小时前
Flutter 结合 shared_preferences 2.5.4 实现本地轻量级数据存储
flutter
健了个平_2413 小时前
【iOS】如何在 iOS 26 的UITabBarController中使用自定义TabBar
ios·swift·wwdc
走在路上的菜鸟13 小时前
Android学Dart学习笔记第十六节 类-构造方法
android·笔记·学习·flutter
Digitally16 小时前
无需 iTunes 将文件从 PC 传输到 iPhone
ios·iphone
hh.h.17 小时前
Flutter适配鸿蒙轻量设备的资源节流方案
flutter·华为·harmonyos
巴拉巴拉~~17 小时前
Flutter 通用下拉刷新上拉加载列表 RefreshListWidget:分页 + 空态 + 错误处理
flutter