New kmmBridge question ... Recent versions (1.2.1)...
# touchlab-tools
b
New kmmBridge question ... Recent versions (1.2.1) publish the xcframework artifact to the github release and reference the URL for that artifact in the Package.swift file that gets produced. In my case, I also need to support cocoapods (bleh ... at least for the time being). The cocoapods quickstart looks like it is configured to still use maven repo (github packages) for the artifact. Is there a way to get it to use the same artifact that spm uses (the file uploaded to the github release)? I was hoping that it would "just work" by using the
gitHubReleaseArtifacts()
configuration, but alas it doesn't seem to. I have the proper deploy keys, netrc entries, etc setup. But my (CI) build fails when validating the produced podspec. I get:
Copy code
- ERROR | [iOS] unknown: Encountered an unknown error ([!] /usr/bin/curl -f -L -o /var/folders/w5/_8wgjw3j5cg6mgrth3s2kg9m0000gn/T/d20250515-12410-9mp3pi/file.zip <https://api.github.com/repos/myorg/myrepo/releases/assets/255030196.zip> --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.16.2 cocoapods-downloader/2.1' -H Accept: application/octet-stream
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0   280    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (56) The requested URL returned error: 403
) during validation.
Perhaps there's something else I need to do with the configuration or ci build workflow?
What also odd, is that if I put that URL into a browser, I don't get a 403, I get a 404, with a body of:
Copy code
{
message: "Not Found",
documentation_url: "<https://docs.github.com/rest/releases/assets#get-a-release-asset>",
status: "404"
}