Mergeable library is not compatible with SwiftUI preview

When I enable the Mergeable library in Xcode, SwiftUI preview will be not available, and the error is as follows.

Cannot preview in this file Could not analyze the built target description for Demo to create the preview. arguments: -no_merge_framework: Failed parsing Mach-O file Assets

Hi,

Sorry to hear you are having problems getting previews working with mergable libraries. You are hitting a known issue which unfortunately has no workaround beyond turning off the mergeable frameworks.

I'll report back if we find a better workaround or ship a solution.

We believe this issue has been fixed in the latest Xcode 26.1 beta. Could you try downloading that from the developer portal and see if the preview now loads correctly for you even with mergeable library enabled?

Mergeable library is not compatible with SwiftUI preview
 
 
Q