Building iOS app that depends on swift package with xcframework dependnecy fails when targeting iOS Device (not simulator).
FB12339303
- Swift package containing library with xcframework dependency added as a binary target.
- Xcode project with iOS app target that depends on the library.
- Open example workspace in Xcode.
- Make sure code signing configuration is correct. Change development team and fix issues if needed.
- Build example app target for iOS Device destination.
- Build succeeds.
- Build fails with the following error:
Assertion failed: (rebasePtr->target == low56), function writeChainEntry, file ChainedFixups.cpp, line 1003.
- The issue does not occurs when building for iOS Simulator.
- Function mentioned in the error does not come from the xcframework dependency.