pod trunk push xxxxx.podspec --allow-warnings --verbose
new podspec update to trunk repo
-> "HTTP/1.1 403 Forbidden\r\n"
-> "Date: Mon, 27 Mar 2017 02:49:32 GMT\r\n"
-> "Connection: keep-alive\r\n"
-> "Strict-Transport-Security: max-age=31536000\r\n"
-> "Content-Type: application/json\r\n"
-> "Content-Length: 135\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Server: thin 1.6.2 codename Doc Brown\r\n"
-> "Via: 1.1 vegur\r\n"
-> "\r\n"
reading 135 bytes...
-> "{\"error\":\"Source code for your Pod was not accessible to CocoaPods Trunk. Is it a private repo or behind a username/password on http?\"}"
read 135 bytes
Conn keep-alive
[!] Source code for your Pod was not accessible to CocoaPods Trunk. Is it a private repo or behind a username/password on http?
CocoaPods : 1.2.0
Ruby : ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
RubyGems : 2.5.1
Host : Mac OS X 10.12.2 (16C68)
Xcode : 8.2.1 (8C1002)
Git : git version 2.10.1
Ruby lib dir : /usr/local/Cellar/ruby/2.3.1_2/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 1970efbe132ca942fe28ae5a7e955aae2aa58e2c
Executable Path: /usr/local/bin/pod
cocoapods-deintegrate : 1.0.1
cocoapods-packager : 1.5.0
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.1.2
cocoapods-try : 1.1.0
It's only an issue with CocoaPods the tool while pushing to trunk
After try a few times to push to trunk, it would success eventually.
But how can I avoid keep get this error?
The source of my podspec is
s.source = {
:http => 'https://ks3-cn-beijing.ksyun.com/ksy.vcloud.sdk/Ios/ksylive_ios_v%s.zip' % s.version,
}
I am trying to update this spec to version 2.0.3, so the url is
https://ks3-cn-beijing.ksyun.com/ksy.vcloud.sdk/Ios/ksylive_ios_v2.0.3.zip
wget --spider https://ks3-cn-beijing.ksyun.com/ksy.vcloud.sdk/Ios/ksylive_ios_v2.0.3.zip
Spider mode enabled. Check if remote file exists.
--2017-03-27 12:15:45-- https://ks3-cn-beijing.ksyun.com/ksy.vcloud.sdk/Ios/ksylive_ios_v2.0.3.zip
Resolving ks3-cn-beijing.ksyun.com... 111.206.217.37
Connecting to ks3-cn-beijing.ksyun.com|111.206.217.37|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 139441565 (133M) [application/zip]
Remote file exists.
The source should be avaliable. Then who is keep getting 403?
It is quite similar to this issue https://github.com/CocoaPods/CocoaPods/issues/5234
but this one is not ref to github's release
and curl get 200
curl -sLI https://ks3-cn-beijing.ksyun.com/ksy.vcloud.sdk/Ios/ksylive_ios_v2.0.3.zip
HTTP/1.1 200 OK
Server: Tengine
Date: Mon, 27 Mar 2017 05:45:22 GMT
Content-Type: application/zip
Content-Length: 139441565
Connection: keep-alive
X-Application-Context: application
x-kss-request-id: 1cc6254135254afeb1f64f48a895e367
ETag: "2e08df2c9f7307d5af1a6ac7eeaf810e"
Last-Modified: Fri, 24 Mar 2017 09:59:00 GMT
Ctime: Fri, 24 Mar 2017 09:59:00 GMT
These commands work on the server too, so it must be something else

I don't have tie to dig in, but this is the checking code.
tie --> time ?
same problem here
<- "CONNECT trunk.cocoapods.org:443 HTTP/1.1\r\nHost: trunk.cocoapods.org:443\r\n\r\n"
-> "HTTP/1.1 200 Connection established\r\n"
-> "\r\n"
<- "POST /api/v1/pods?allow_warnings=false HTTP/1.1\r\nContent-Type: application/json; charset=utf-8\r\nAccept: application/json; charset=utf-8\r\nUser-Agent: CocoaPods/1.2.0\r\nAuthorization: Token[redacted]\r\nAccept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nHost: trunk.cocoapods.org\r\nContent-Length: 796\r\n\r\n"
<- "{\"name\":\"BaiduMobStat\",\"version\":\"4.5.0\",\"summary\":\"Baidu Mobile Analysis SDK for iOS.\",\"description\":\"Baidu Mobile Analysis SDK for iOS, Please get the APP Key From Our Site\",\"homepage\":\"https://mtj.baidu.com/\",\"license\":{\"type\":\"Copyright\",\"text\":\"Copyright 2017 Baidu. All rights reserved.\"},\"authors\":{\"apptongji\":\"[email protected]\"},\"platforms\":{\"ios\":\"5.0\"},\"source\":{\"type\":\"zip\",\"http\":\"https://mtj.baidu.com/static/cocoapods/BaiduMobStat_V4.5.0.zip\"},\"source_files\":\"BaiduMobStat/BaiduMobStat.h\",\"public_header_files\":\"BaiduMobStat/BaiduMobStat.h\",\"vendored_libraries\":[\"BaiduMobStat/libBaiduMobStat.a\"],\"frameworks\":[\"JavaScriptCore\",\"Security\",\"CoreLocation\",\"SystemConfiguration\",\"CoreTelephony\",\"CoreGraphics\",\"UIKit\",\"Foundation\"],\"libraries\":[\"z\",\"stdc++\"],\"requires_arc\":true}\n"
-> "HTTP/1.1 403 Forbidden\r\n"
-> "Date: Thu, 06 Apr 2017 07:00:55 GMT\r\n"
-> "Connection: keep-alive\r\n"
-> "Strict-Transport-Security: max-age=31536000\r\n"
-> "Content-Type: application/json\r\n"
-> "Content-Length: 135\r\n"
-> "X-Content-Type-Options: nosniff\r\n"
-> "Server: thin 1.6.2 codename Doc Brown\r\n"
-> "Via: 1.1 vegur\r\n"
-> "\r\n"
I resolve this issue by change my zip file url from https to http, this issue seams the validation environment doesn't support some https url.
for example:
doesn't support:
https://mtj.baidu.com/static/cocoapods/BaiduMobStat_V4.5.0.zip
support:
http://mtj.baidu.com/static/cocoapods/BaiduMobStat_V4.5.0.zip
http works!
i have the same problem use:
~
s.source = { :http=>"http://iossdks-1253653367.costj.myqcloud.com/QCloudCore.zip" }
~
when i execute pod trunk me. it works.
I have the same problem. My GitHub repo is a private repo and I can't run the following command -
pod trunk push --allow-warnings --use-libraries --verbose
I get an error stating-
Source code for your Pod was not accessible to CocoaPods Trunk. Is it a private repo
How to fix it?
pod trunk me. it works.
it's just amazing!!!!
sees to be the network issue on server side. I retried many times then succeed. not pod trunk me or http. maybe the url is not reachable for cocoapods trunk server some time.
does not work at all. same issue here.
private repo of course.
Most helpful comment
I have the same problem. My GitHub repo is a private repo and I can't run the following command -
pod trunk push --allow-warnings --use-libraries --verbose
I get an error stating-
Source code for your Pod was not accessible to CocoaPods Trunk. Is it a private repo
How to fix it?