Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13870] generate-xcodeproj crash on binary targets dependency #4473

Closed
krzyzanowskim opened this issue Nov 18, 2020 · 3 comments
Closed
Labels

Comments

@krzyzanowskim
Copy link
Contributor

Previous ID SR-13870
Radar rdar://problem/71555616
Original Reporter @krzyzanowskim
Type Bug
Environment

Apple Swift version 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)
Target: x86_64-apple-darwin20.1.0

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug, RunTimeCrash
Assignee None
Priority Medium

md5: 4fa5d3a8ddaf0286801e913712bec2ca

Issue Description:

If a package has a dependency that comes with a binary target, it no longer can generate an Xcode project for the package.

For example:

let package = Package(
    name: "Foo",
    platforms: [
        .macOS(.v10_12)
    ],
    dependencies: [
        .package(url: "https://github.com/krzyzanowskim/CryptoSwift.git", .upToNextMinor(from: "1.3.5"))
    ],
    targets: [
        .target(
            name: "Foo",
            dependencies: ["CryptoSwift"])
    ]
)



❯ swift package generate-xcodeproj
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Cloning https://github.com/krzyzanowskim/CryptoSwift.git
Resolving https://github.com/krzyzanowskim/CryptoSwift.git at 1.3.5
[13280/13280] Downloading binary artifacts
Fatal error: file Xcodeproj/pbxproj.swift, line 400
zsh: illegal hardware instruction  swift package generate-xcodeproj
@typesanitizer
Copy link

@swift-ci create

@neonichu
Copy link
Member

`swift package generate-xcodeproj` is officially deprecated now: #3062

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
@ikesyo
Copy link
Collaborator

ikesyo commented Mar 25, 2024

generate-xcodeproj command doesn't exist anymore. Closing.

@ikesyo ikesyo closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants