moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

iOS - Linked framework not invalidated when changing target architecture

Open steviek opened this issue 4 years ago • 2 comments

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

steviek avatar Jan 05 '21 19:01 steviek

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.

Alex009 avatar Jan 09 '21 13:01 Alex009

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?

steviek avatar Jan 27 '21 20:01 steviek