Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

createXCFramework / createSwiftPackage task FAILED #36

@abhimuktheeswarar

Description

@abhimuktheeswarar
> Task :xxx:createXCFramework FAILED
Both watchos-arm64_32 and watchos-armv7k represent two equivalent library definitions.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dryrun:createXCFramework'.
> Process 'command 'xcodebuild'' finished with non-zero exit value 70

Xcode version: Version 12.5.1 (12E507) on Intel Mackbook Pro running macOS Big Sur.

A snippet of the project build.gradle.kts

plugins {
    id("com.chromaticnoise.multiplatform-swiftpackage") version "2.0.3"
}

kotlin {
    ios()
    watchos()
    tvos()
    macosX64()
}
multiplatformSwiftPackage {
    swiftToolsVersion("5.3")
    packageName(project.name)
    outputDirectory(File(projectDir, "swiftpackage"))
    targetPlatforms {
        iOS { v("5") }
        tvOS { v("9") }
        macOS { v("10") }
        watchOS { v("4") }
    }
}

It is working only if remove the watchOS target.
Looks like, this is related to this issue: https://developer.apple.com/forums/thread/666335

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions