ITMS-90842:AppClip 和 Flutter 的 SDK 使用无效

问题描述

直到我将我的应用上传到应用商店 我有这个问题:

Please correct the following issues,then upload again.

ITMS-90842: Invalid SDK usage - App clip 
'Runner.app/AppClips/RunnerAppClip.app' uses the SDK selector 
'requestAlwaysAuthorization',which is not supported. Ensure your app clip is 
using supported SDK features.

我使用了位置权限,但如何从 AppClip 中排除特定位置

解决方法

您可以使用 Swift 编译标志在 App Clip 目标中包含/排除特定的代码行。

为此,您可以打开 App Clip 目标的构建设置并添加一些自定义标志,如 APPCLIP。

然后在您的代码中...

yarn add -g @nrwl/cli