App crashes with Symbol not found on tvos 15.0

Hi,

I built a SwiftUI app using Xcode 13.0 beta (13A5155e) that runs on an Apple TV 4K running tvos 15.0 beta (19J5314e).

This was all fine for the past few weeks, but today, when running the very same app again that was installed by Xcode yesterday, it didn't start anymore and crashed instantly. A few ours ago, it ran just fine and nothing has changed since then and the Apple TV was not restarted.

I then tried to run the app through Xcode and got:

dyld[817]: Symbol not found: _$ss12TaskPriorityVMa
  Referenced from: /private/var/containers/Bundle/Application/0AFBBAAB-E85B-452D-8022-724011D49354/appletv.app/appletv
  Expected in: /usr/lib/swift/libswift_Concurrency.dylib
Symbol not found: _$ss12TaskPriorityVMa
  Referenced from: /private/var/containers/Bundle/Application/0AFBBAAB-E85B-452D-8022-724011D49354/appletv.app/appletv
  Expected in: /usr/lib/swift/libswift_Concurrency.dylib
dyld`__abort_with_payload:
    0x1008c7eb8 <+0>:  mov    x16, #0x209
    0x1008c7ebc <+4>:  svc    #0x80
->  0x1008c7ec0 <+8>:  b.lo   0x1008c7edc               ; <+36>
    0x1008c7ec4 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x1008c7ec8 <+16>: mov    x29, sp
    0x1008c7ecc <+20>: bl     0x1008c63fc               ; cerror_nocancel
    0x1008c7ed0 <+24>: mov    sp, x29
    0x1008c7ed4 <+28>: ldp    x29, x30, [sp], #0x10
    0x1008c7ed8 <+32>: ret    
    0x1008c7edc <+36>: ret    

I can still run the app on an emulator without issues, so something about this Apple TV is broken. I also tried resetting it to factory defaults which didn't help.

It's probably worth noting, that the first thing Xcode did today when trying to run the app on the device was waiting for symbols to be downloaded, which took forever, so I re-paired the Apple TV to fix this.

Any idea how I can continue testing my app on this Apple TV without buying a new one? ;)

Accepted Reply

Updating the XCode beta resolved the issue. Looks like the Apple TV updated itself over night wich caused an API mismatch.

Replies

Updating the XCode beta resolved the issue. Looks like the Apple TV updated itself over night wich caused an API mismatch.