Cocoapods: pod trunk push failed on CI

Created on 11 Nov 2019  ยท  4Comments  ยท  Source: CocoaPods/CocoaPods

โ€•โ€•โ€• MARKDOWN TEMPLATE โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•

Command

pod trunk push Instabug.podspec

/Users/distiller/.gem/ruby/2.6.4/bin/pod trunk push Instabug.podspec

Report

  • What did you do?
    Release a new version

  • What did you expect to happen?
    to be released

  • What happened instead?
    Failed
    CDN: Repo trunk does not exist!

Stack

   CocoaPods : 1.8.0
        Ruby : ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-darwin18]
    RubyGems : 3.0.6
        Host : Mac OS X 10.14.4 (18E226)
       Xcode : 11.1 (11A1027)
         Git : git version 2.23.0
Ruby lib dir : /Users/distiller/.rubies/ruby-2.6.4/lib
Repositories : 

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.0
cocoapods-try         : 1.1.0

Error

NoMethodError - undefined method `url' for nil:NilClass
/Users/distiller/.gem/ruby/2.6.4/gems/cocoapods-trunk-1.4.0/lib/pod/command/trunk/push.rb:155:in `master_repo_url'
/Users/distiller/.gem/ruby/2.6.4/gems/cocoapods-trunk-1.4.0/lib/pod/command/trunk/push.rb:121:in `validate_podspec'
/Users/distiller/.gem/ruby/2.6.4/gems/cocoapods-trunk-1.4.0/lib/pod/command/trunk/push.rb:70:in `run'
/Users/distiller/.gem/ruby/2.6.4/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/distiller/.gem/ruby/2.6.4/gems/cocoapods-1.8.0/lib/cocoapods/command.rb:52:in `run'
/Users/distiller/.gem/ruby/2.6.4/gems/cocoapods-1.8.0/bin/pod:55:in `<top (required)>'
/Users/distiller/.gem/ruby/2.6.4/bin/pod:23:in `load'
/Users/distiller/.gem/ruby/2.6.4/bin/pod:23:in `<main>'

โ€•โ€•โ€• TEMPLATE END โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•โ€•

Most helpful comment

Hi, I realise this issue is closed but I am facing the same error. After running pod trunk push --verbose the error I get is

CDN: Repo trunk does not exist!

Now I know this means that trunk has not been added and I need to run pod install. The problem is that the library I am working on has no dependencies and thus does not have a podfile. I was wondering if there was a way to install the trunk repo without needing a podfile in the project.

I run this command

rm -rf ~/.cocoapods/repos

and then, run pod trunk push xxx, it works!

All 4 comments

Use version CocoaPods 1.8.4 and also add the trunk repo by adding at least once pod install.

Hi, I realise this issue is closed but I am facing the same error. After running pod trunk push --verbose the error I get is

CDN: Repo trunk does not exist!

Now I know this means that trunk has not been added and I need to run pod install. The problem is that the library I am working on has no dependencies and thus does not have a podfile. I was wondering if there was a way to install the trunk repo without needing a podfile in the project.

Hi, I realise this issue is closed but I am facing the same error. After running pod trunk push --verbose the error I get is

CDN: Repo trunk does not exist!

Now I know this means that trunk has not been added and I need to run pod install. The problem is that the library I am working on has no dependencies and thus does not have a podfile. I was wondering if there was a way to install the trunk repo without needing a podfile in the project.

I run this command

rm -rf ~/.cocoapods/repos

and then, run pod trunk push xxx, it works!

Hi, I realise this issue is closed but I am facing the same error. After running pod trunk push --verbose the error I get is

CDN: Repo trunk does not exist!

Now I know this means that trunk has not been added and I need to run pod install. The problem is that the library I am working on has no dependencies and thus does not have a podfile. I was wondering if there was a way to install the trunk repo without needing a podfile in the project.

I run this command

rm -rf ~/.cocoapods/repos

and then, run pod trunk push xxx, it works!

worked for me, thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soleares picture soleares  ยท  3Comments

pronebird picture pronebird  ยท  3Comments

hmistry picture hmistry  ยท  3Comments

evermeer picture evermeer  ยท  3Comments

k06a picture k06a  ยท  3Comments