Cocoapods: How to use `pod trunk push xxx.podspec` successfully

Created on 6 Feb 2020  ·  4Comments  ·  Source: CocoaPods/CocoaPods

Report

What did you do?

ℹ Firstly runpod lib lint --sources=https://github.com/CocoaPods/Specs.git and that get successful.

➜  RITLKit git:(master) ✗ pod lib lint --sources=https://github.com/CocoaPods/Specs.git

 -> RITLKit (2.0.2)
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  note: Using new build system
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  note: Planning build
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  note: Constructing build description
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'RITLViewFrame' from project 'Pods')
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'Masonry' from project 'Pods')
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'RITLKit' from project 'Pods')
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'Pods-App' from project 'Pods')
    - NOTE  | [RITLKit/Category, RITLKit/ScrollPageController, RITLKit/ScrollPageController/LLSegmentBar, and more...] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'App' from project 'App')

RITLKit passed validation.

ℹ Then run pod trunk push RITLKit.podspec and that get failed.

What did you expect to happen?

ℹ Published successfully.

What happened instead?

ℹ It gave error on pod trunk push RITLKit.podspec

➜  RITLKit git:(master) ✗ pod trunk push RITLKit.podspec
Updating spec repo `trunk`

CocoaPods 1.9.0.beta.3 is available.
To update use: `sudo gem install cocoapods --pre`
[!] This is a test version we'd love you to try.

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.9.0.beta.3

Validating podspec
 -> RITLKit (2.0.2)
    - ERROR | [iOS] unknown: Encountered an unknown error (CDN: trunk Repo update failed - 27 error(s):
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.3/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.1.0/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.1.5/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.1.6/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.2.0/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.2.1/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.2.2/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.2.3/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.2.4/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.3.0/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.3.1/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.3.2/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.4.0/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.5.0/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.5.1/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.5.2/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.5.3/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.6.0/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.6.1/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.6.2/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.6.3/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.6.4/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/1.0.0/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/1.0.1/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/1.0.2/Masonry.podspec.json, error: execution expired
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/1.1.0/Masonry.podspec.json, error: execution expired) during validation.

[!] The spec did not pass validation, due to 1 error.

CocoaPods Environment

Stack

   CocoaPods : 1.8.4
        Ruby : ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin17]
    RubyGems : 2.7.7
        Host : Mac OS X 10.15 (19A602)
       Xcode : 11.3.1 (11C504)
         Git : git version 2.21.1 (Apple Git-122.3)
Ruby lib dir : /Users/yuewen/.rvm/rubies/ruby-2.4.1/lib
Repositories : AliyunRepo - git - https://github.com/aliyun/aliyun-specs.git @ 9f18c77e3f5d08d4f03d806f4012430ce40ecd63
               master - git - https://github.com/CocoaPods/Specs.git @ bba40050a2e70da06266d4e5ab6b116f84ce7ebb
               trunk - CDN - https://cdn.cocoapods.org/

Installation Source

Executable Path: /Users/yuewen/.rvm/gems/ruby-2.4.1/bin/pod

Plugins

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

Podfile

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'
#use_frameworks!个需要用到它,比如reactiveCocoa
inhibit_all_warnings!

target 'RITLKitDemo' do
 pod 'RITLViewFrame'
 pod 'Masonry'
end

Could you tell me how to use 1.8.4? Thank you very much.

workaround available

Most helpful comment

现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired
这个了

All 4 comments

This seems like a CDN issue and reaching the service. Please use git based solution since that continues to work.

Going to close as there is no issue currently here and we've implemented retrying in CDN service. Seems like you can't reach it.

Oh, Thanks @dnkoutso

现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired
这个了

现在的解决方式是在 host 文件里面 加了
199.232.4.133 raw.githubusercontent.com
就不会出现
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired
这个了

this is good!

Was this page helpful?
0 / 5 - 0 ratings