Undefined symbol: _swift_willThrowTypedImpl in Xcode 16

Hi, I have issue on build my react native project and got this error "Undefined symbol: _swift_willThrowTypedImpl" how can I fix it?

Answered by DTS Engineer in 809247022

The symbol is part of the typed throws implementation within the Swift runtime. Typed throws are a relatively recent feature — see SE-0413 Typed throws — so it’s likely that this problem is caused by a deployment target issue. Perhaps:

  • You have code that’s using this routine without setting its deployment target directly.

  • You have built code with one minimum deployment target and you’re trying to link it together with code built with a different one.

With Xcode this stuff usually Just Works™. If you’re able to reproduce this issue with a standard Xcode project, created from one of the built-in templates, then that’s likely a bug on Apple’s part and I’d love to hear more about it.

OTOH, if you’re only seeing this in projects set up to use your third-party tooling, my advice is that you escalate this via the support channel for that tooling.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

The symbol is part of the typed throws implementation within the Swift runtime. Typed throws are a relatively recent feature — see SE-0413 Typed throws — so it’s likely that this problem is caused by a deployment target issue. Perhaps:

  • You have code that’s using this routine without setting its deployment target directly.

  • You have built code with one minimum deployment target and you’re trying to link it together with code built with a different one.

With Xcode this stuff usually Just Works™. If you’re able to reproduce this issue with a standard Xcode project, created from one of the built-in templates, then that’s likely a bug on Apple’s part and I’d love to hear more about it.

OTOH, if you’re only seeing this in projects set up to use your third-party tooling, my advice is that you escalate this via the support channel for that tooling.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi @DTS Engineer, I have the same error along with some others. I get this errors when try to build iOS app with xcode 15.4 that has static framework as a dependency that is built with xcode 16.1. Is there a way to build static framework with xcode 16.1 so it would be compatible with previous xcode versions?

Undefined symbol: __swift_FORCE_LOAD_$_swift_Builtin_float
Undefined symbol: __swift_FORCE_LOAD_$_swift_errno
Undefined symbol: __swift_FORCE_LOAD_$_swift_math
Undefined symbol: __swift_FORCE_LOAD_$_swift_signal
Undefined symbol: __swift_FORCE_LOAD_$_swift_stdio
Undefined symbol: __swift_FORCE_LOAD_$_swift_time
Undefined symbol: __swift_FORCE_LOAD_$_swiftsys_time
Undefined symbol: __swift_FORCE_LOAD_$_swiftunistd
Undefined symbol: _swift_willThrowTypedImpl

Are you sure that the deployment target on your static framework matches that of the app that’s using it?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Undefined symbol: _swift_willThrowTypedImpl in Xcode 16
 
 
Q