Skip to content

Xcodebuild fails when building Package.swift in the presence of a top level .xcodeproj or .xcworkspace file #1019

Description

@shahzadmajeed

When you build/test a Swift package in a directory where both Package.swift and *.xcodeproj exist at the top level, xcodebuild fails to recognize a scheme "MyPackage-Package" in the Swift package (.swiftpm).

It is most probably because the presence of .xcodeproj forces xcodebuild to use that project by default, even if you are not specifying -project or -workspace argument when building the Swift package.

There should be a way to specify user intentions via. xcodebuild arguments so that the build system knows exactly what to build/test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions