Hi! I develop an iOS library and I met an issue with SwiftUI previews in iOS app project with my library integrated. After I open preview, build for preview finishes successfully, but preview itself never appears. I failed to find any error messages or any other indicators of what went wrong or how to fix it. Switching to legacy preview execution seems to fix problem, but I think that is not ideal. Could you help fixing this?
Xcode 16.2, Simulator iPhone 16, iOS 18.2
Project to reproduce - https://drive.google.com/file/d/1cU6JKwshK_wQfe9YIqcMg3UGWq45OYlx/view?usp=sharing
Preview diagnostics - https://drive.google.com/file/d/1kPcgVSSqreiepGuqhdIoCW2rLSicgsWr/view?usp=sharing
Awesome! Thanks so much for bearing with me on this. Would you mind filing a feedback about this? If not, I can file one but that's the easiest way for you to track the resolution, too. I can add the diagnostics you've shared here and extra context from our chat. We'll need to engage with other teams to figure out what's going on.
From what I can see the YandexMobileAds library is tripping up the runtime linker under previews. There's a whole lot of stuff going on when previews tries to load and reconstruct the process at runtime. Learning of specific examples like this is fantastic! We can run with this and dig in but it will take some time to figure out across all the components.
Thank you!