Hi all. I think i’ve solved most of my source tre...
# multiplatform
m
Hi all. I think i’ve solved most of my source tree issues, and can now generate an XCFramework from the KMM project i’ve built. However, i’m getting the following error when I bring it into an xcode project:
Copy code
error build: Undefined symbol: _OBJC_CLASS_$_AnalyticsMultiplatformActionEventV5
I’m kind of presuming that this is because the generated xcframework only contains ios-arm64 and ios-x86_44 versions (i’m on an m1). I tried to add the iosSimulatorArm64:
Copy code
iosSimulatorArm64 {
        binaries {
            framework {
                baseName = "AnalyticsMultiplatform"
                xcFramework.add(this)
            }
        }
    }

        val iosSimulatorArm64Main by getting {
            dependsOn(iosMain)
        }
But assembling the framework always fails:
Copy code
the path does not point to a valid framework: .../analytics-multiplatform/build/analytics_multiplatformXCFrameworkTemp/fatframework/debug/iosSimulator/analytics_multiplatform.framework
m
Since no-one else replied I'll chip in my 2c. It might just be a naming thing, but isn't it a bit suspicious that there's both "XCFramework" and "fatframework" in that last message?