AppClip doesn't support requestAlwaysAuthorization for Location
还没有人认领这个 Issue。
评估
调研方向
Start with AuthorizationCatcher and its ask(type:) initializer logic, then check how the AppClip target defines the APPCLIP macro. Build an AppClip target using PromiseKit and submit it for App Store validation; done means requestAlwaysAuthorization is not used for AppClip targets and ITMS-90842 no longer occurs.
由索引模型根据 Issue 内容生成。
描述
Issue
Appstore rejects the AppClip with Promisekit due to it's usage of requestAlwaysAuthorization in AuthorizationCatcher.
ITMS-90842: Invalid SDK usage - App clip 'AppClip.app' uses the SDK selector 'requestAlwaysAuthorization', which is not supported. Ensure your app clip is using supported SDK features.
Steps to Reproduce
Xcode: 12.5
Minimu iOS Version Supported: 12+
PromiseKit: 6.15.3
Cocoapods: 1.10.1
- Create an appclip target using the following steps.
- Add the AppClip target to
Podfileand let it use the PromiseKit. - Build and submit the app with AppClip to AppStore.
- You will receive the email with above issue
ITMS-90842: Invalid SDK usage.
Recommended Fix
In initialiser of AuthorizationCatcher, update ask(type:) to use APPCLIP macro which needs to be defined for AppClip targets.
switch type {
case .always:
#if os(tvOS) || APPCLIP
fallthrough
#else
requestAlwaysAuthorization()
#endif
case .whenInUse:
requestWhenInUseAuthorization()
}
- 主要语言
- Swift
- 星标
- 14.2k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mxcl/PromiseKit 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
mxcl/PromiseKit#1362 · 1 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
mxcl/PromiseKit#1361 · 6 条评论 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
mxcl/PromiseKit#1356 · 3 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 20/100
mxcl/PromiseKit#1347 · 5 条评论 · 1 个 reaction ·
-
None of your spec sources contain a spec satisfying the dependency: `PromiseKit (~> 7.0.0-rc1)`.未关闭
难度 4/5 3-5 天 新手友好度 20/100
mxcl/PromiseKit#1242 · 5 条评论 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 1 天内回复
-
area: build-and-ci bug difficulty:1 good first issue help wanted S3: minor
难度 2/5 1-3 小时 新手友好度 86/100
manaflow-ai/cmux#16193 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 85/100
permissionlesstech/bitchat#1743 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
521xueweihan/HelloGitHub#3816 ·