I've been building my app on Xcode 13 when suddenly it doesn't know about the iOS 15 APIs. Here are a couple error examples:
self.modified = Date.now
// Type 'Date' has no member 'now'
and
operation.modifySubscriptionsResultBlock = { result in
// Value of type 'CKModifySubscriptionsOperation' has no member 'modifySubscriptionsResultBlock'
I can take the exact same code and build it on my other Mac and it builds properly. Both Macs are using Xcode Version 13.0 (13A233) and running macOS 11.6 (20G165). I checked the deployment info for project and target (iOS 15.0), but of course using git I know I have the exact same code base on both machines.
Is there an Xcode preference or system file that got hosed? I tried reinstalling Xcode, but it didn't help.