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

可以参考下图修改

NSExtension

NSExtensionActivationRule的属性值可以参考这里

-------------本文结束感谢您的阅读-------------