Timestamps of CADisplayLink are incorrect in iOS 18 simulator

Hello, I noticed that the CADisplayLink seems to emit incorrect targetTimestamp and timestamp in the iOS 18 simulator. If you compute the actual duration of a frame, the duration is always a negative number.

This only occurs in the iOS 18 simulator.

I cannot reproduce the issue locally, the values I am getting for actualDuration are always positive. I would recommend first updating Xcode to the latest beta. If the issue persists after that, then please use Feedback Assistant to submit a bug report and please post here the ID generated by Feedback Assistant.

I have the same issue. The problem is reproduced during build with xcode 15.4 and xcode 16 (released) for IOS 18 Simulator devices. On real devices works fine.

Timestamps of CADisplayLink are incorrect in iOS 18 simulator
 
 
Q