我试图将我的应用程序发布到appollo的应用程序store ,但失败了.我收到一封来自苹果的邮箱,其中包含以下错误消息:

ITMS-90078:缺少推送通知权限-您的应用程序似乎注册了苹果推送通知服务,但应用程序签名的权限不包括‘ap-Environment’权限.如果你的应用使用Apple推送通知服务,请确保在供应门户中为你的应用ID启用了推送通知,并在使用包括‘APS-Environment’权利的分发供应配置文件签署你的应用后重新提交.Xcode不会在构建时自动从配置文件中复制APS环境授权.这种行为是故意的.要使用此授权,请在项目编辑器的功能窗格中启用推送通知,或手动将授权添加到您的授权文件中.有关详细信息,请参见https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1.

阿波罗上的日志(log)似乎没有问题:

----- Building IPA with Flutter -----
Archiving be.test.wollo...
Updating project for Xcode compatibility.
Upgrading project.pbxproj
Upgrading Runner.xcscheme
Upgrading Info.plist
Automatically signing iOS for device deployment using specified development team in Xcode project: 9M5TAN4D63
Running pod install...                                             66.0s
Running Xcode build...                                          
Xcode archive done.                                         165.6s
Built /Users/appollo/Documents/app/build/ios/archive/Runner.xcarchive.

???? Building with sound null safety ????

Building App Store IPA...                                          19.7s
Built IPA to /Users/appollo/Documents/app/build/ios/ipa.
To upload to the App Store either:
    1. Drag and drop the "build/ios/ipa/*.ipa" bundle into the Apple Transport macOS app https://apps.apple.com/us/app/transporter/id1450874784
    2. Run "xcrun altool --upload-app --type ios -f build/ios/ipa/*.ipa --apiKey your_api_key --apiIssuer your_issuer_id".
       See "man altool" for details about how to authenticate with the App Store Connect API key.
----- Compressing output -----
/Users/appollo
----- Retrieving .ipa file name -----
Documents/app/build/ios/ipa/app.ipa
----- Creating private key folder -----
----- Converting private key format -----
----- Retrieving .ipa file name -----
Documents/app/build/ios/ipa/app.ipa
----- IPA Publication -----
No errors uploading 'Documents/app/build/ios/ipa/app.ipa'
Build stop order received at 2022-09-05 16:25:48.694329+00:00
----- Git patch creation -----
 Appollo patch
 6 files changed, 19 insertions(+), 14 deletions(-)
 create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux
 create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/path_provider_linux
 create mode 120000 linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux
----- Compressing output -----
/Users/appollo

我真的不知道怎么才能把它弄好.

推荐答案

Tl;dr;只要应用程序不使用推送通知,就可以忽略警告.

这似乎是Fflight的问题,而不是Appollo的问题.

问题描述:Flutter iOS app submission issue warning: Missing Push Notification Entitlement

关于Flutter 官方回购的问题:https://github.com/flutter/flutter/issues/14182

潜在解决方案:https://github.com/flutter/flutter/issues/9984

Ios相关问答推荐

如何保持拖动预览与原始项目完全相同?

在SWIFT中将圆角+透明背景从导入视频(.mp4)添加到导出视频(.mov)

使用SWIFT传输表示时的条件文件表示格式

如何将Safari调试器附加到Turbo-iOS原生应用中的模拟器

分配给指针会通过 class_addMethod 导致 EXC_BAD_ACCESS

BezierPath 中绘制图像形状轮廓的算法(Canny 边缘检测器)

OBJC @selector 在另一个实现中不起作用

拖动手势导致 sim 崩溃 Swift UI

SwiftUI 点击列表内不会触发 Select

当 .searchable 修饰符处于活动状态时,如何将变量设置为 false?

SwiftUI 菜单中的内联水平按钮

SwiftUI 动画:为什么容器视图在移动?我很难理解这种行为

SwiftUI 中的描边图像边框

iOS SwiftUI - 从以前的 struct 调用函数

XCode 14 Beta 中 NavigationStack 的正文渲染问题

如何从 scendelegate 打开我的标签栏控制器

有什么方法可以预填充核心数据?

是否可以在没有 Mac 的情况下为 iOS 制作 PhoneGap 应用程序?

swift 语言中的 null / nil

如何更改uitableview删除按钮文本