Hey folks, I’m just starting with multiplatform an...
# multiplatform
v
Hey folks, I’m just starting with multiplatform and trying to integrate to the existing Android + iOS project and facing and issue where the iOS code is built and installed normally, but it shows an error that shared module not found and can’t see any signature or get a code completion I’m trying to attach shared KMM module as a Local Direct integration and following the https://kotlinlang.org/docs/multiplatform-direct-integration.html#connect-the-framework-to-your-project guide to
Connect the framework to your project
The script in build phase is executing without an error
*cd* "$SRCROOT/.."
./gradlew :p2p:embedAndSignAppleFrameworkForXcode
Also I manually added
$(SRCROOT)/../p2p/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)
to
Framework search path
, but from XCode preview it shows that it will be something like
xcode-frameworks/Production/iphoneos18.2
however from Android project build files I see it generated
xcode-frameworks/Production/iphonesimulator18.2
maybe that’s the issue? Any ideas would be highly appreciated
If I fix the search path and make it something on the higher level and with recursive search, the error got away but it fails if I switch the emulators and when I try to navigate to a module I get this
So after XCode rebuilt I see the framework, but I want to have this path to be dynamic and re-usable across team members, what would be the best way to do that? Because this $(SRCROOT)/../p2p/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME) doesn’t work fo rme