Hello 👋 . Thanks for providing this sample project and for filing the issue with Apple. I saw your post on the developer forums and replied there, but thought it would be useful to reply here as well.
I have been investigating mergeable libraries too, and have come across the same issue. Have you managed to find a solution?
The only way I have been able to get things working for both release and debug builds is to explicitly disable mergable library in debug mode. This defaults to "standard" behaviour and the Bundle URL resolves to the non Reexported framework path (naturally), but things still continue to work in release mode as you have documented. Although this works, it feels error-prone and doesn't appear to be something Apple has documented as a required step.
Hello 👋 . Thanks for providing this sample project and for filing the issue with Apple. I saw your post on the developer forums and replied there, but thought it would be useful to reply here as well.
I have been investigating mergeable libraries too, and have come across the same issue. Have you managed to find a solution?
The only way I have been able to get things working for both release and debug builds is to explicitly disable mergable library in debug mode. This defaults to "standard" behaviour and the Bundle URL resolves to the non Reexported framework path (naturally), but things still continue to work in release mode as you have documented. Although this works, it feels error-prone and doesn't appear to be something Apple has documented as a required step.