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

Can't add a package with a dynamic framework inside of a binary target.

    XMLWordPrintable

    Details

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

      macOS 11.2.1 on Apple M1

      Xcode 12.4 and Xcode 12.5 beta 2

      Description

      Hello,

      I'm testing swift package for my framework. And during that tests I'm getting some strange errors in Xcode 12.4 and Xcode 12.5 beta 2.

      artifact of binary target 'GLMap' failed extraction: The operation couldn’t be completed. (TSCBasic.StringError error 1.)

      I've checked Console.

      default 10:26:57.489507+0100 kernel AMFI: '/private/var/folders/lf/vzq1qc7530b07bgzfv97spl80000gn/T/TemporaryDirectory.x1jJNI/glmapswift-manifest' has no CMS blob?default 10:26:57.489507+0100 kernel AMFI: '/private/var/folders/lf/vzq1qc7530b07bgzfv97spl80000gn/T/TemporaryDirectory.x1jJNI/glmapswift-manifest' has no CMS blob?default 10:26:57.489518+0100 kernel AMFI: '/private/var/folders/lf/vzq1qc7530b07bgzfv97spl80000gn/T/TemporaryDirectory.x1jJNI/glmapswift-manifest': Unrecoverable CT signature issue, bailing out.default 10:26:57.489520+0100 kernel AMFI: code signature validation failed.

      I've checked binary frameworks used in swift package. There is no signature inside:

      {{evgen@Evgens-MacBook-Air ios-arm64_armv7 % codesign --verify --verbose GLMap.framework/GLMap
      GLMap.framework/GLMap: code object is not signed at all
      In architecture: arm64}}

      Swift package repository: https://github.com/GLMap/GLMapSwift branch spm.

      I had an issue with cloning this repo with git-lfs enabled and git installed from brew. Don't know why. Removed git from brew and it worked using git from console tools.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            molind Evgen Bodunov
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: