Skip to content

CocoaPods pod repo push fails to download XCFramework zip files from GitHub Releases #269

@kpgalligan

Description

@kpgalligan

Summary

KMMBridge 1.0 added the ability to use GitHub releases to store XCFramework zip artifacts. This works with SPM. However, pod repo push seems to only download a partial zip file. There is no error reported. It simply doesn't get the whole file. Running the same curl command locally has no issue.

Workaround

pod repo push works fine with GitHub Packages maven links. Why? Not sure. However, CocoaPods should use maven instead of GitHub packages. To do so, edit the following:

addGithubPackagesRepository() // <-- Add this

kmmbridge {
    // gitHubReleaseArtifacts() <-- Remove this
    mavenPublishArtifacts() // <-- Add this

    // Must be the SSH url
    cocoapods("git@github.com:[owner/repo].git")
}

Possible Fix

No idea. It's a mystery.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions