Post

Replies

Boosts

Views

Activity

Swift 4.1 error with NS Predicate EXC_BAD_ACCESS (code=1, address=0x1)
HiI'm hoping that someone can assist here as I cannot work this one out and the Easter holiday weekend has already passed me by trying to resolve this.I have had no previous issues with this code in previous versions of xcode.However, installed 9.3 at the tail end of last week and a issue has appeared.The line of code that throws the error is a boolean predicate with all other predicates seemingly working as usual.Other lines with similar boolean conditions also give this error.let Currentpredicate1 = NSPredicate(format: "%K == %@", "managed", true as CVarArg)Having tried to find info as well as various formats, for example,let Currentpredicate1 = NSPredicate(format: "managed == %@", true as CVarArg)Yet I cannot solve this issue. Please can anyone help or point me in the right direction of a solution?Kindest regards,AD
7
0
3.8k
Apr ’18