Estoy creando pod en este gran tutorial. https://www.raywenderlich.com/99386/create-cocoapod-swift .
Uso Objective C en lugar de Swift. Se produjo un error en este paso:
pod repo push MyProj MyProj.podspec --verbose
Salida:
Validación de especificaciones MyProj (0.1.0) - Analizando en la plataforma iOS 9.0. Preparando Cloning spec repo `******` from `https: //github.com / ****** / PodSpecs.git` $ /Applications/Xcode.app/Contents/Developer/usr/bin/git clon https://github.com/******/PodSpecs.git ****** Clonación en '******' ... advertencia: Parece que ha clonado un repository vacío. -> MyProj (0.1.0) - ERROR | [iOS] unknown: Encontrado un error desconocido (No se puede crear una fuente con URL https://github.com/******/PodSpecs.git /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/sources_manager.rb:42:in `find_or_create_source_with_url ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:654:in `bloque en las fonts ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:653:in `map ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:653:in `sources ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:144:in `resolve_dependencies ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:373:in `block in download_pod ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:373:in `each ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:373:in `download_pod ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:269:in `block in perform_extensive_analysis ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:263:in `each ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:263:in `perform_extensive_analysis ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:81:in `validate ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:125:in `block en validate_podspec_files ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:119:in `each ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:119:in `validate_podspec_files ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:64:in `run ' /Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `' / usr / local / bin / pod: 23: en 'cargar' / usr / local / bin / pod: 23: en `' ) durante la validation. [!] La especificación `MyProj.podspec` no valida. /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:130:in `block en validate_podspec_files ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:119:in `each ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:119:in `validate_podspec_files ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:64:in `run ' /Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run ' /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `' / usr / local / bin / pod: 23: en 'cargar' / usr / local / bin / pod: 23: en `'
Mi file podspec:
Pod :: Spec.new do | s | s.platform =: ios s.ios.deployment_target = '9.0' s.name = "MyProj" s.summary = "MyProj le permite a un usuario crear su propio timer". s.requires_arc = true s.version = "0.1.0" s.license = {: type => "MIT",: file => "LICENCIA"} s.author = {"*** ***" => "***@***.com"} s.homepage = "https://github.com/******/MyProj" s.source = {: git => "https://github.com/******/MyProj.git",: tag => "# {s.version}"} s.framework = "UIKit" s.dependency 'ReactiveCocoa', '~> 2.5.0' s.source_files = "MyProj / ** / *. {h, m}" s.resources = "MyProj / ** / *. {png, jpeg, jpg, guión gráfico, xib}" fin
Hice todos los pasos anteriores en el tutorial.
Usando la última versión de cocoapods.
¿Cómo puedo solucionar este error?
Estaré agradecido por cualquier ayuda!