Skip to content

support iOS-only packages in diagnose-breaking-changes action #104

@lukaskollmer

Description

@lukaskollmer

Problem

the new diagnose-breaking-changes action introduced in #101 only seems to work with packages that can be compiled on/for macOS, but fails with packages that only list iOS in their deployment targets.

my guess is that the command internally uses swift build, whch always compiles the package for the current target platform, and as a result cannot compile iOS-only packages (or the iOS version of a multi-platform package; any iOS-related compilation still needs xcodebuild)

Solution

we should look into somehow making this work. there is no trivial flag we could pass to get it to compile for iOS rather than macOS, but in the worst case we'd probably be able to compile the old&new versions of the package ourselves, produce the API digest for both, and then somehow invoke swift api-digester -diagnose-sdk ourselves; though i don't know what the output from that would look like.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions