Evening all, I have an App that has been in the App Store a couple of months. The game core is a SCNScene with a SKScene as a 2D overlay for controls.
Since upgrading my iPhone XS to iOS 13.0 the game runs for about 1 second, then freezes. Pausing the code in the debugger and looking at the trace I can step through and see it is in a loop,
libsystem_kernel.dylib__psynch_rw_wrlock
libsystem_pthread.dylib
_pthread_rwlock_lock_wait
The above are the highlights of the trace. If I look back in the trace it falls back to the AppDelegate as the source.
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Running Xcode Version 11.0 (11A420a) which did also update so unsure if that is related.
A little bit baffled - I know I have not supplied any code to fix here, but I really feel this is not code related, something is either wonky in my Xcode environment or this is a bug introduced by Apple?
If I remove the Heads up Display (the 2D aspect) by commenting out the code,
view.overlaySKScene = HUD
The App runs fine. If I recreate the HUD code with an empty SKScene even that gets stuck back in a loop.
If I run the app from the AppStore - using the exact version of the code uploaded - it works fine. It also works fine in the simulator when compiled fresh from Xcode.
Just not on my iPhone XS, or another test iPhone XR, so thinking this will likely affect any iOS 13.0 updated device.