Xcode报错:NSExtensionActivationSupportsImageWithMaxCount must be a positive integer
Xcode报错:NSExtensionActivationSupportsImageWithMaxCount must be a positive integer

Xcode报错:NSExtensionActivationSupportsImageWithMaxCount must be a positive integer

在打包应用时,Xcode提示:

Invalid Info.plist value. The value for the key 'NSExtensionActivationRule' in bundle ImageSlim.app/Contents/PlugIns/ImageSlimShare.appex is invalid. NSExtensionActivationSupportsImageWithMaxCount must be a positive integer (found a String). (ID: 569e421a-5eee-4d0c-b100-b3074c905660)

报错信息表示ImageSlimShare.appex扩展的Info.plist存在类型错误。

问题代码:

<key>NSExtensionActivationSupportsImageWithMaxCount</key>
<string>10</string>

系统要求的类型为Integer,不是String类型,需要修改为String类型。

NSExtensionActivationRule 是系统解析的谓词规则,类型不对 = 无法解析 = 直接拒绝上架。

   

如果您认为这篇文章给您带来了帮助,您可以在此通过支付宝或者微信打赏网站开发者。

欢迎加入我们的 微信交流群QQ交流群,交流更多精彩内容!
微信交流群二维码 QQ交流群二维码

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注