Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trunk push error: "Source code for your Pod was not accessible to CocoaPods Trunk"

Tags:

cocoapods

I'm having trouble pushing an update to a pod (Audiobus).

"pod trunk push" seems to successfully validate (downloads the git repository, builds, etc), but then drops out with a 403 Forbidden error when doing a POST to /api/v1/pods with the podspec content, along with the message:

"Source code for your Pod was not accessible to CocoaPods Trunk. Is it a private repo or behind a username/password on http?"

I have verified that I'm registered ("pod trunk me" shows I am logged in with correct email address, an owner of the pod).

The repository once required HTTP authentication, but after seeing the above error, I disabled auth. I've verified that there's now open access to the git repository by cloning the repository from a separate, unauthenticated machine (git clone https://developer.audiob.us/download/SDK.git test --single-branch --depth 1 --branch 2.2).

Is this a bug in trunk.cocoapods.org? What am I missing?

Cheers in advance,

Michael

like image 949
Michael Tyson Avatar asked Nov 22 '22 10:11

Michael Tyson


1 Answers

Make sure to make your repo commit tag name the same version name you have on your package podspec file.

like image 82
Yasir Romaya Avatar answered Jun 28 '23 16:06

Yasir Romaya