Swift Package Manager Binary Target

Hello all,
I've been using SPM For awhile.
previously I put the binary ***.xcframework to my private repository, but now I want to put it inside my github assets whenever release instead.

Below is my previous implementation, which is working great on my private repository.
Code Block
.binaryTarget(name: "***", path: "builds/***.xcframework")

now wanna change to this
Code Block
.binaryTarget(name: "***",
           url: "https://github.com/nsnull0/***/releases/download/1.4.17/***.zip",
           checksum: "3180c34ec2f0ba3a8d5fe69fe90816368e7a74e6b25d11cb6dd382cf87ae6083")


and it always got the error.
Code Block
✅Fetching https://github.com/nsnull0/***
✅Cloning https://github.com/nsnull0/***
✅Checking out https://github.com/nsnull0/*** at dev/spm
✅Removing https://github.com/nsnull0/***
❌artifact of binary target '***' faied download: invalid status code 404
1 error ....


This is probably due to the fact that Xcode tries to download the zip file, specified by the url, without knowning that it's an attached file at a private github repository, and does't add the personal access token in the headers. As a result: 404 file not found.

The exact same logic is working on a publicly accessed github repository.
@gcharita , So what is the solution ? . I have tried to use SSH and i get a different error. see this post which i have raised in stackoverflow : https://stackoverflow.com/questions/65292586/swift-pcakage-manager-artifact-of-binary-target-failed-download-invalid-statu

Otherwise if i use Personal access token how can i configure them in xcode ?
@deepeshcko well, in my case a public github repository with a binary attached to its release, was appropriate. (I wanted to send a closed source library to a client outside my company)

I don't known if that's your case also.
Swift Package Manager Binary Target
 
 
Q