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

Xcode produces an invalid application package when adding a Swift Binary Targets

    XMLWordPrintable

    Details

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

      Xcode 12.1 (12A7403)

      macOSĀ 10.15.7 (19H2)

      Swift 5.3

      Description

      When adding a Swift Binary Package to an Xcode project that also have an extension the binary package will be copied both to the Plugins folder and the Frameworks folder.

      This happen on Xcode 12.1 and earlier.

      A sample project to reproduce this bug can be found here:
      https://github.com/karimhm/Apple-Radars/tree/main/SwiftBinaryPackageBugSample

      To reproduce the bug:

      • Open SwiftBinaryPackageBugSample.xcodeproj Xcode project.
      • Wait for all the packages to resolve.
      • Build or archive the application and examine its structure.

      The application bundle look as follow:

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            karhm Karim H
            Votes:
            11 Vote for this issue
            Watchers:
            18 Start watching this issue

              Dates

              Created:
              Updated: