Uniapp打包发布App Store时(90894)错误

Missing Info.plist value. Apps with the com.apple.developer.usernotifications.communication entitlement must specify either “INSendMessageIntent” or “INStartCallIntent” in the value of the NSUserActivityTypes Info.plist key. (90894)

解决:

这个警告是苹果在审核iOS应用时发现了使用用户通知和通讯相关的权限(com.apple.developer.usernotifications.communication)。这个权限通常与使用 SiriKit 相关,特别是当你的应用需要处理发送消息或开始通话的请求时。

错误提示,如果您的应用包含了com.apple.developer.usernotifications.communication权限,那么必须在Info.plist文件中通过NSUserActivityTypes键指定至少一个SiriKit支持的Intent类型。具体来说,需要包含"INSendMessageIntent""INStartCallIntent"

可以直接在应用项目中配置 iOS 平台的 Info.plist和资源文件(Bundle Resources)。

创建Info.plist文件,NSUserActivity | Apple Developer Documentation文档对于NSUserActivityTypes的介绍。

Info.plist文件完整代码:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<!-- SiriKit 相关权限配置 -->
		<!-- 声明支持的 NSUserActivityTypes -->
		<key>NSUserActivityTypes</key>
		<array>
			<string>INSendMessageIntent</string>
			<string>INStartCallIntent</string>
		</array>
	</dict>
</plist>

这样在进行iOS云打包的时候就会将Info.plist文件合并进去,这样交付的时候就不会出现警告了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值