This is for version 3.0 of Core Data by Tutorials
On page 189
fetchRequest.predicate = Predicate(format: "siteNumber == %@", argumentArray: [siteNumber])
fetchRequest.predicate = NSPredicate(format: "siteNumber == %@", argumentArray: [siteNumber])
in 3.1 the typo is still there…
@operator and @tetanuss. Thanks very much for pointing this out. I will make note of this, and bring this attention to the authors! I have posted this in the errata section for this book, and have credited the two of you for bringing this to our attention.
All the best!