我已经创建了一个私人吊舱,需要使用以前的吊舱创建另一个吊舱。在第二个pod的podspec
文件中添加了先前的pod作为依赖项。这是我的第二个pod的podspec文件。
s.name = "MySecondPod"
s.version = "0.1.0"
s.summary = "A AxisStickerSwift for sticker view"
s.description = <<-DESC
A longer description of AxisStickerSwift in Markdown format.
DESC
s.homepage = "https://cocoapods.org/pods/MySecondPod"
s.license = "Private"
s.author = { "MyName" => "myemail@gmail.com" }
s.platform = :ios, "10.0"
s.source = { :git => 'https://bitbucket.org/myteam/my-second-project-swift.git', :commit => '11076ad76hto99975574fc357ce35dc3f4435fad'}
s.source_files = "MySecondPod/DevelopmentPod/**/*"
s.public_header_files = 'MySecondPod/DevelopmentPod/**/*.h'
#s.resource = "Testing/DevelopementPod/BundleResources/ACVResourceBundle.bundle"
#s.compiler_flags = '-lxml2'
s.requires_arc = true
s.swift_version = '4.2'
s.dependency "MyFirstPod"
我正在尝试使用以下命令来验证我的podspec
pod spec lint MySecondPod.podspec --sources='https://xp-dev.com/git/my-private-podspecs , https://github.com/CocoaPods/Specs' --verbose
它返回错误
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――― ―――――――――――――――――
/usr/local/bin/pod spec lint MySecondPod.podspec --sources=https://xp-dev.com/git/my-private-podspecs , https://github.com/CocoaPods/Specs --allow-warnings
您做了什么?
您期望发生什么?
发生了什么事?
CocoaPods : 1.6.1
Ruby : ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17]
RubyGems : 2.5.2.3
Host : Mac OS X 10.13.6 (17G65)
Xcode : 10.1 (10B61)
Git : git version 2.17.2 (Apple Git-113)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib
Repositories : aliyun - https://github.com/aliyun/aliyun-specs.git @ 46bf22c75c6289ab96fc31e6e49d8b75b0ac00c7
master - https://github.com/CocoaPods/Specs.git @ 3d345e50376c7ebc36e7502d6e104746ad32fcd0
xp-dev-git-my-private-podspecs - https://xp-dev.com/git/my-private-podspecs @ aace2f056978a2afd3a81a7129a60ada6f04707b
cocoapods-deintegrate : 1.0.2
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.3.1
cocoapods-try : 1.1.0
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyFirstPod' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyFirstPod
end
URI::InvalidURIError - bad URI(is not URI?): https://xp-dev.com/git/my-private-podspecs
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/rfc3986_parser.rb:67:in `split'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/rfc3986_parser.rb:73:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/common.rb:227:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/uri/common.rb:714:in `URI'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.6.1/lib/cocoapods-core/source/manager.rb:396:in `name_for_url'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/sources_manager.rb:19:in `find_or_create_source_with_url'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/sources_manager.rb:58:in `source_with_name_or_url'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/validator.rb:46:in `block in initialize'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/validator.rb:46:in `map'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/validator.rb:46:in `initialize'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command/spec/lint.rb:64:in `new'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command/spec/lint.rb:64:in `block in run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command/spec/lint.rb:63:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command/spec/lint.rb:63:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.6.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
―――模板结束―――――――――――――――――――――――――――― ――――――――――――――――――――――
[!]哦,不,发生错误。
问题出在哪里?