'CLBeaconIdentityCondition' in scope

With Xcode 15.3, iOS SDK 17.4, in a iOS App, I have this error :

TestClass.swift:11:27: error: cannot find 'CLBeaconIdentityCondition' in scope
    let beaconCondition = CLBeaconIdentityCondition(uuid: UUID(uuidString: "12345678-1234-1234-1234-123456789012"), major: 1, minor: 2)

I can reproduce with this swift code :

import CoreLocation

class TestClass: NSObject{
    let beaconCondition = CLBeaconIdentityCondition(uuid: UUID(uuidString: "12345678-1234-1234-1234-123456789012"), major: 1, minor: 2)
}

And this compilation command :

xcrun swiftc -target arm64-apple-ios17.4 -sdk $(xcrun --sdk iphoneos --show-sdk-path) -emit-executable TestClass.swift -o TestClassExecutable -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -framework CoreLocation

Would you be looking for CLMonitor.BeaconIdentityCondition?

'CLBeaconIdentityCondition' in scope
 
 
Q