Compile warning: Embedded binary's NSExtensionActivationRule is TRUEPREDICATE

上传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,所以上架的时候不能用。

可以参考下图修改

Compile warning: Embedded binary's NSExtensionActivationRule is TRUEPREDICATE
NSExtension

NSExtensionActivationRule的属性值可以参考这里

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

上一篇:mac中NSScrollView自定义滑动条NSScroller


下一篇:resource fork, Finder information, or similar detritus not allowed