Xcode 13 suddenly using old frameworks

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.

Answered by LogicalLight in 689637022

Solved. Some slip of the mouse, perhaps, but the running target had changed to my Mac.

Accepted Answer

Solved. Some slip of the mouse, perhaps, but the running target had changed to my Mac.

Xcode 13 suddenly using old frameworks
 
 
Q