Forces a predicate that was securely decoded to allow evaluation.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
When securely decoding
NSPredicate objects that are encoded using
NSSecure, evaluation is disabled because it is potentially unsafe to evaluate predicates you get out of an archive.
Before you enable evaluation, you should validate key paths, selectors, and other details to ensure no erroneous or malicious code will be executed. Once you’ve verified the predicate, you can enable the receiver for evaluation by calling