Armando DevPicon
05/25/2024, 5:20 AMiosApp
project and suddenly I started to receive this error:
/GreetingKMP/iosApp/iosApp/ContentView.swift:2:8: error: cannot load module 'Shared' built with SDK 'iphonesimulator17.4' when using SDK 'iphonesimulator17.5
/GreetingKMP/shared/build/xcode-frameworks/Debug/iphonesimulator17.5/Shared.framework/Modules/Shared.swiftmodule/arm64-apple-ios-simulator.swiftmodule import Shared
To solve the issue, I considered recreating the platform. I invalidated caches and rebuilt the shared module and the XCode project several times without success; in the end, changing the baseName made it work!
iosTarget.binaries.framework {
baseName = "DevShared" // <<-- I changed this name from "Shared"
isStatic = true
}
Ryan Simon
10/31/2024, 11:58 PMPablichjenkov
11/01/2024, 12:41 AMRyan Simon
11/01/2024, 1:58 AMyousefa2
11/01/2024, 8:32 AMbuild
folder for the shared module should be enough to create a new framework with correct iOS version.Ryan Simon
11/01/2024, 8:27 PM