Hey, I’m following the
SPM export setup, to integrate my KMP library into my native iOS project.
But
Upload to Github release step is not accurate pointing out that “Copy Link Address” for the .zip file is the address you need to use for your Package.swift target.url, that url only works on web browser. Reading into this
question on StackOverFlow seems like the way of doing it is getting the real url using github API, which I used and it works, What I want to know is if somebody else had success using the link from “Copy Link Address”?
Note: This is a private repo and I already have authentication set, so I can download my binary when using a url like
https://api.github.com/repos/organization/libName/releases/assets/123456789.zip, but not when using a url like
https://github.com/organization/libName/releases/download/0.1.0/ABC.xcframework.zip
• Maybe “Copy Link Address” works under certain conditions that I don’t know
• Or probably I’m making a mistake in the creation of the github release.
Note 2: I know that there is a plugin called KMMBridge, but the documentation is based on setting your project using a template, which I cannot do at this point.
Any help is appreciated.