Xcode提交Flutter应用至TestFlight报ITMS-90164签名权限不匹配错误
提交TestFlight触发ITMS-90164 HealthKit权益匹配错误
触发场景
此前多次提交TestFlight构建版本流程正常,甚至提交前一日的上传操作无任何异常,当日通过Xcode上传Flutter项目构建包时,被苹果后台校验拦截,具体报错内容为:
ERROR ITMS-90164: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed: '[ ]' for the key 'com.apple.developer.healthkit.access' in 'Payload/Runner.app/Runner'."
已尝试的排查操作
- 执行Xcode项目全量清理
- 在Xcode中重新配置启用自动应用签名
- 删除本地路径
~/Library/MobileDevice/Provisioning\ Profiles/下缓存的所有描述文件 - 关闭Xcode自动签名,在Apple Developer官网手动创建全新描述文件完成签名配置
以上操作均未消除报错,且应用的权限配置与上一次成功提交时完全一致,无任何改动。
问题溯源与解决状态
- 根因确认:该报错为Apple端服务临时配置变更导致,问题出现初期Apple未发布任何官方回应或说明。
- 临时过渡方案:社区验证可生效的临时解决方式为,在Health Kit权限配置中开启Clinical Health Records访问选项,该操作未使用任何Apple未授权的配置改动,本质为临时 workaround,不属于官方提供的正式修复方案。
- 最终修复状态:Apple已在服务端完成该问题的修复,目前上传TestFlight构建包无需再使用上述临时过渡方案。
内容的提问来源于stack exchange,提问作者John
相关产品推荐
相关产品推荐

