Clock and Related Types not Found with Xcode 14.

import Foundation

print("Hello, World!")

let continuousClock = ContinuousClock()

let anyClock: Clock = SuspendingClock()

compiles correctly with Xcode 14 beta 6 but fails with Xcode 14. Am I missing some build setting or compiler flag?

Answered by robnotyou in 727800022

It may depend on your deployment target, as Clock requires iOS 16.
(So if your deployment target is less that 16, the compiler will throw an error.)

Accepted Answer

It may depend on your deployment target, as Clock requires iOS 16.
(So if your deployment target is less that 16, the compiler will throw an error.)

Clock and Related Types not Found with Xcode 14.
 
 
Q