If you have a string @"NSMetadataItemFSNameKey == *"and want to turn it into a predicate, you cannot. This is distorted, so you get an exception.
It should be: @"NSMetadataItemFSNameKey == '*'". These single quotes around an asterisk are incredibly important.
source
share