iOS 18.1 beta - App crashes at runtime while using Translation.TranslationError in project

I'm trying to cast the error thrown by TranslationSession.translations(from:) as Translation.TranslationError. However, the app crashes at runtime whenever Translation.TranslationError is used in the project.

Environment:

  • iOS Version: 18.1 beta
  • Xcode Version: 16 beta

yld[14615]: Symbol not found: _$s11Translation0A5ErrorVMa Referenced from: <3426152D-A738-30C1-8F06-47D2C6A1B75B> /private/var/containers/Bundle/Application/043A25BC-E53E-4B28-B71A-C21F77C0D76D/TranslationAPI.app/TranslationAPI.debug.dylib Expected in: <B570D1F0-2024-345C-AE73-1A6D9D9AECF0> /System/Library/Frameworks/Translation.framework/Translation

GOOD

iOS 18.1 beta - App crashes at runtime while using Translation.TranslationError in project
 
 
Q