Hello everyone! I've been banging my head for hour...
# multiplatform
r
Hello everyone! I've been banging my head for hours trying to make this work with no luck. I have a Kotlin (plugin v1.6.10) multiplatform shared (ios/android for the moment) library project with the following cocoapods config:
Copy code
cocoapods {
    framework {
        baseName = "MyAppSharedLib"
        //Dynamic framework support
        isStatic = false
    }
    summary = "Multiplatform shared functionality"
    homepage = "<https://myapp.com>"
    podfile = project.file("../../app/MyApp/Podfile")
    ios.deploymentTarget = "13.5"
    osx.deploymentTarget = "10.15"
    watchos.deploymentTarget = "6.2"

    // Maps custom Xcode configuration to NativeBuildType
    xcodeConfigurationToNativeBuildType["CUSTOM_DEBUG"] = NativeBuildType.DEBUG
    xcodeConfigurationToNativeBuildType["CUSTOM_RELEASE"] = NativeBuildType.RELEASE
}
I'm using a Macbook Pro MX. The project seems to build correctly (I can see a
build
folder with generated code for different platforms) but when I do a
podInstall
the installed pod just contains a skeleton of the library with an empty
placeholder.h
file in it. My current targets are
android()
,
jvm()
, and
ios()
. I tried with
iosSimulatorArm64()
as well with no luck. Any ideas?
s
It took me a while to get used to this too, but that's how the cocoapods plugin works. The placeholder and related stuff are dummys until the first Xcode build using the pod happens. The build uses the extra scripting provided by the cocoapod plugin to replace the dummy stuff with the real stuff after that first build.
1
r
my goodness... you're entirely right!
THANK YOU!
I spend the whole day trying to figure it out with no luck
I was about to give up for the day
I can't believe it was just like that