I have a framework project written in Objective C that i want to publish on JFrog Artifactory.
My .podspec file is like this
Pod::Spec.new do |s|
s.name = 'Name'
s.version = '0.0.1'
s.summary = 'summry'
s.description = <<-DESC
description
DESC
s.homepage = 'homepage'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'user' => 'email' }
s.source = { :git => 'url.git', :tag => s.version.to_s }
s.ios.deployment_target = '11.4'
s.source_files = 'Name/*{.h}','Name/**/*{.h}'
s.dependency "AFNetworking"
end
it is working fine if i define something like this in my Podfile
pod ‘Name’,:git =>'url.git', :tag=>'0.0.1'
but the requirement is to publish this framework on JFrog and fetch from there, in JFrog video tutorial they are saying to upload project in tar.gz form and it will generate podspec file in Artifactory but its not happening in my case.
Could someone please help me?
Thanks
Try adding an empty line at the beginning and the end of the .podspec file. This somehow fixed the problem for me.
Also make sure your .podspec file passes all tests of pod spec lint Name.podspec
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.