Undefined symbol: _swift_FORCE_LOAD$_swiftXPC

I build an XCFramework in xcode 15.3 and install the framework in my example application. Everything is fine when I run the example app in xcode 15.3, but if I run the example app in xcode 15.2 I get this error:

Undefined symbol: _swift_FORCE_LOAD$_swiftXPC Linker command failed with exit code 1 (use -v to see invocation)

I made tests with different versions of XCode and differents versions of XCFramework compilation and only versions compiled in XCode 15.3 has problems

Resume:

  • App Xcode 15.3 -> Framework 15.3 -> ✅
  • App xcode 15.2 -> Framework 15.3 -> ❌
  • App xcode 15.1 -> Framework 15.3 -> ❌
  • App Xcode 15.3 -> Framework 15.2 -> ✅
  • App xcode 15.2 -> Framework 15.2 -> ✅
  • App xcode 15.1 -> Framework 15.2 -> ✅
  • App Xcode 15.3 -> Framework 15.1 -> ✅
  • App xcode 15.2 -> Framework 15.1 -> ✅
  • App xcode 15.1 -> Framework 15.1 -> ✅

Could it be a bug on xcode 15.3?

This isn’t expected to work. Indeed, I was explaining this to some just yesterday.

Share and Enjoy

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

@eskimo Thank you for your help. I understand what you explained and I read more about it, but I have a question. How did my app compile in Xcode 15.1, containing the XCFramework compiled in xcode 15.2?

Undefined symbol: _swift_FORCE_LOAD$_swiftXPC
 
 
Q