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-15243] swift package describe Failing for Package with binary targets #4387

Open
swift-ci opened this issue Sep 25, 2021 · 7 comments
Open
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-15243
Radar None
Original Reporter maxxfrazer (JIRA User)
Type Bug

Attachment: Download

Environment

swift-driver version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)

Target: x86_64-apple-macosx11.0

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

md5: 79541160117c9c09d26e1191d5bd4626

Issue Description:

`swift package describe` and `package-collection-generate` fail on Swift Packages that contain only binary targets.

Output in terminal for package describe:
error: artifact not found for target 'AgoraRtmKit'

Example packages that are failing:

https://github.com/AgoraIO/AgoraRtcEngine_iOS
https://github.com/AgoraIO/AgoraRTM_iOS

In the attachments I have added Agora-Packages-Input.json, which is a JSON file used as the input for generating a package collection. The only package that passes is `iOS-UIKit`, which has the two above packages as dependencies.

Possibly connected to: https://bugs.swift.org/browse/SR-15065

@swift-ci
Copy link
Contributor Author

Comment by Max Cobb (JIRA)

As it's been a while - I wanted to add that this is still the case.

@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
@iainsmith
Copy link

I just tried this on head (e79908c) and hit a different error message.

  • Swift 5.7.0 error message: error: unknown binary artifact file extension 'zip'
  • head error message: error: The file “XYZ.xcframework.zip” couldn’t be opened.

@iainsmith
Copy link

Linking to Swift Package Index issue: SwiftPackageIndex/SwiftPackageIndex-Server#1172

@tomerd
Copy link
Member

tomerd commented Oct 18, 2022

@iainsmith is this with the same project as above?

@Wei18
Copy link

Wei18 commented Jun 2, 2023

Reproduce on swift-tools-version:5.7

// Package.swift
.binaryTarget(
    name: "LocalXCFrameworkZIP",
    path: "LocalXCFrameworkZIP.zip"
),

then run /usr/bin/env swift package describe --type json
error msg error: unknown binary artifact file extension 'zip'

@ileitch
Copy link

ileitch commented Jun 18, 2023

I've just run into this bug, it's also present in the 5.9 beta. This branch demonstrates the issue, just checkout and run swift package describe.

@Wei18
Copy link

Wei18 commented Jun 30, 2023

Hi @ileitch,
Does periphery have new version worked?
Thanks

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