App crashes when built using Xcode 14 beta and running on iOS 15.5

When I use the new Xcode beta to build my app it crashes on launch when using iOS 15.5. However if I use a device using the iOS 16 beta it works as expected.

The error I'm getting is the following.

dyld[11076]: Symbol not found: _$sSo26UIContextMenuConfigurationC5UIKitE10identifier15previewProvider06actionG0ABSo9NSCopying_pSg_So16UIViewControllerCSgycSgSo6UIMenuCSgSaySo0L7ElementCGcSgtcfC

  Referenced from: /private/var/containers/Bundle/Application/89EF89C9-3922-4E6C-BA00-0241894841B8/SomeApp.app/SomeApp

  Expected in: /usr/lib/swift/libswiftUIKit.dylib

Symbol not found: _$sSo26UIContextMenuConfigurationC5UIKitE10identifier15previewProvider06actionG0ABSo9NSCopying_pSg_So16UIViewControllerCSgycSgSo6UIMenuCSgSaySo0L7ElementCGcSgtcfC

  Referenced from: /private/var/containers/Bundle/Application/89EF89C9-3922-4E6C-BA00-0241894841B8/SomeApp.app/SomeApp

  Expected in: /usr/lib/swift/libswiftUIKit.dylib

(lldb) 

Is it missing some libraries? If I use the stable Xcode 13 Version it works as intended.

I know this is still beta but I'm wondering if anyone else is having this problem or am I missing something?

Yes, we're facing the same issue. It's mentioned in the known issues though.

Swift apps that reference UIContextMenuConfiguration and are compiled with the iOS 16 beta SDK crash on launch when run on a device running an older build. (93505538)
App crashes when built using Xcode 14 beta and running on iOS 15.5
 
 
Q