Xcode : Embed different .xcframework based on scheme (dev/uat/prod) without breaking Embed & Sign
03:42 15 Dec 2025

I have a Flutter iOS app with multiple schemes/flavors:

  • dev

  • uat

  • prod

Each scheme maps to a different build configuration (e.g. Debug-dev, Debug-uat, Release-prod, etc.).

I need to embed a third-party SDK that is provided as two different xcframeworks:

  • SDK_UAT.xcframework

  • SDK_PROD.xcframework

Requirement

  • For dev and uat schemes → embed SDK_UAT.xcframework

  • For prod scheme → embed SDK_PROD.xcframework

What is the recommended way to do this?

ios swift xcode mobile