Uploaded image for project: 'Swift'
  1. Swift
  2. SR-13870

generate-xcodeproj crash on binary targets dependency

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Package Manager
    • Labels:
    • Environment:

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

      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

       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            krzyzanowskim Marcin Krzyzanowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: