Compile warning: Embedded binary

作者: Ro_bber | 来源:发表于2017-09-12 16:11 被阅读85次

    上传AppStore的时候出现如下BUG:

    warning: Embedded binary's NSExtensionActivationRule is TRUEPREDICATE. Before you submit your containing app to the App Store, be sure to replace all uses of TRUEPREDICATE with specific predicate statements or NSExtensionActivationRule keys. If any extensions in your containing app include TRUEPREDICATE, the app will be rejected.

    ShareExtnesion的plist文件中 NSExtensionActivationRule属性值为TRUEPREDICATE。

    官方文档中提到:

    During development only, you can use the TRUEPREDICATE constant (which always evaluates to true) as a stub predicate statement, to test your code path before you implement your predicate statement.

    注意: development only,所以上架的时候不能用。

    可以参考下图修改

    NSExtension

    NSExtensionActivationRule的属性值可以参考这里

    喜欢我的可以关注收藏我的个人博客:RobberJJ

    相关文章

      网友评论

        本文标题:Compile warning: Embedded binary

        本文链接:https://www.haomeiwen.com/subject/wzicsxtx.html