Xcode: Fix linking against .xcframework from static libraries

Issue: #21752
4 files changed