ge-org / multiplatform-swiftpackage

Gradle plugin that generates a Swift Package Manager manifest and an XCFramework to distribute a Kotlin Multiplatform library for Apple platforms.
Apache License 2.0
333 stars 49 forks source link

Generate arm64 swift package #53

Open jaypatel208 opened 8 months ago

jaypatel208 commented 8 months ago

Below is the config for genrating swift package:

multiplatformSwiftPackage {
        packageName("shared")
        swiftToolsVersion("5.3")
        targetPlatforms {
            iOS { v("13") }
        }
    }

what's happening here is generating package which is x86_64 but it will not run on every xcode what if i want to genrate specific framework ?? basically i want arm64 sitable pacakge to be generated.

indyfromoz commented 8 months ago

@jaypatel208

Have a look at the open PR here - https://github.com/ge-org/multiplatform-swiftpackage/pull/41.

It is recommended to use this forked version - https://github.com/luca992/multiplatform-swiftpackage or try Touchlab's https://github.com/touchlab/KMMBridge