Xcode 15 Beta 8 : Value of type 'WorldTrackingProvider' has no member 'queryPose'

Hi,

I can't recompile a project for visionOS with the latest beta.

It makes me the error :

Value of type 'WorldTrackingProvider' has no member 'queryPose'

In the online doc queryPose still exists and Xcode does not indicate which API to use instead of queryPose.

Does anyone have an idea of the API that should now be used instead of queryPose?

Hi, that method has been renamed queryDeviceAnchor(atTimestamp:): https://developer.apple.com/documentation/arkit/worldtrackingprovider/4293525-querydeviceanchor

Hi, my code:

let pose = worldTrackingProvider.queryPose(atTimestamp: CACurrentMediaTime()) else { return }

gives me the same error as you:

Value of type 'WorldTrackingProvider' has no member 'queryPose'

However, changing it to:

let pose = worldTrackingProvider.queryDeviceAnchor(atTimestamp: CACurrentMediaTime()) else { return }

give me this error which doesn't seem to be a fix either:

Value of type 'WorldTrackingProvider' has no member 'queryPose'

Xcode 15 Beta 8 : Value of type 'WorldTrackingProvider' has no member 'queryPose'
 
 
Q