Closed azlekov closed 2 years ago
Hi @L3K0V , This happens only with previews? Presumably you are using x86 and not arm mac?
There shouldn't have been any significant change on ios/mac side between 0.8.7 and 0.8.8 since the update was only for inclusion of windows mingw target into modules. I've checked the released files and module.xml and it seems to be ok for mac/ios targets.
I've previously had problems with xcode caching my libraries in an unexpected way. Could you try cleaning the project, or removing and re-adding the library to your project?
Hi @L3K0V , This happens only with previews? Presumably you are using x86 and not arm mac?
Only with previews on x86 MacBook. Everything works fine on iOS, but maybe is affecting macOS targets...
There shouldn't have been any significant change on ios/mac side between 0.8.7 and 0.8.8 since the update was only for inclusion of windows mingw target into modules. I've checked the released files and module.xml and it seems to be ok for mac/ios targets.
I've previously had problems with xcode caching my libraries in an unexpected way. Could you try cleaning the project, or removing and re-adding the library to your project?
I tried cleaning derived data, rebuilding the multiplatform project without any success. Last time I used SwiftUI previews I believe was with 0.8.6 or 0.8.7. I also checked the release notes and nothing special I found.
By re-adding the library what do you mean, do you remember how you fix it? Any other proposals or ideas?
By re-adding the library what do you mean, do you remember how you fix it? Any other proposals or ideas?
I haven't touched iOS/macos in several months, but the last time I had trouble with it I would remove the framework (the one that you kotlin project builds in the end using "packForXcode" task or something similar) from the xcode project, let xcode fail a build and report the framework is missing and then add it once again.
Or if you are using multiplatformSwiftPackage
plugin then the task is createXCFramework
that produces the framework.
I will try and report back, hopefully with a successful result 🙏
Deleting the framework and generating a fresh one did the job 🎉
Many thanks, @ionspin! I'm closing this 📦
After updating to 0.8.8 when I develop a multiplatform project and I try to run some SwiftUI previews I got:
It was working before.