上傳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