moko-resources
moko-resources copied to clipboard
iOS - Linked framework not invalidated when changing target architecture
If I build an app with Moko Resources, then change to target "Any iOS device (arm64)" instead of a simulator build in XCode, then XCode complains that the linked framework was built for a different architecture (i.e. x86):
Building for iOS, but the linked and embedded framework 'shared.framework' was built for iOS Simulator.
The workaround is to run a ./gradlew clean
in the shared folder, but it would be better if the framework got recompiled when the iOS target changed
hi! something wrong in your xcode+gradle configuration. if you can show config/project - i try to help. now i not see any reasons of this behavior in moko-resources.
I've just uploaded my repo, my build.gradle.kts is here: https://github.com/steviek/UnitPriceCalculator/blob/main/shared/build.gradle.kts
Most of the build related files were generated by the Android Studio plugin, so it's possible that's where the original issue is?