Редактирование существующего частного репозитория Cocopod

Бывший сотрудник моей компании создал частное репозиторий cocoapod. Я скачал репозиторий и добавил в него код. Теперь я хочу «опубликовать» свои изменения, чтобы каждый, кто запустит pod install, получил новую версию.

Для этой задачи я следовал руководству - Как обновить CocoaPods Версия библиотеки

Итак, я зафиксировал свои изменения в мастере, обновил версию до номера версии, который я хочу загрузить в файл podspec, но затем запуск команды проверки завершается со следующей ошибкой: ERROR | [iOS] unknown: Encountered an unknown error (Unable to find a specification for SalesforceSDKCore (~> 8.0) depended upon by *****

Вот мой код podspec:

Pod::Spec.new do |spec|
  spec.name         = "some_pod_name"
  spec.version      = "1.0.1"
  spec.summary      = "Summary"
  spec.description  = "Description"
  spec.homepage     = "Some_Homepage"
  spec.license      = "MIT"
  spec.author             = { "My name" => "[email protected]" }
  spec.ios.deployment_target = "11.0"
  spec.source       = { :git => "git_http_path", :tag => "#{spec.version}" }
  spec.source_files  = "AllFiles", "AllFiles/Core/**/*.{h,m,swift}"
  spec.default_subspec = 'Core'
  spec.static_framework = true

  spec.subspec 'Theme' do |ta|
    ta.source_files = "AllFiles/Theme/**/*.{h,m,swift}"
    ta.ios.deployment_target = "11.0"
  end

  spec.subspec 'Core' do |ca|
    ca.source_files = "AllFiles/Core/**/*.{h,m,swift}"
    ca.dependency 'CocoaLumberjack/Swift', '~> 3.6.0'
    ca.dependency 'AlamofireObjectMapper', '~> 6.0'
    ca.dependency 'SalesforceSDKCore', '~> 8.0'
    ca.dependency 'ReSwift', '~> 5.0'
    ca.dependency 'PromiseKit', '~> 6.12'
  end

  spec.subspec 'Network' do |na|
    na.ios.deployment_target = "13.0"
    na.source_files = "AllFiles/Network/**/*.{h,m,swift}"
    na.dependency 'AllFiles/Data'
    na.dependency 'SalesforceSDKCore', '~> 8.0'
  end

  spec.subspec 'Redux' do |ra|
    ra.ios.deployment_target = "13.0"
    ra.source_files = "AllFiles/Redux/**/*.{h,m,swift}"
  end

  spec.subspec 'UI' do |ua|
    ua.source_files = "AllFiles/UI/**/*.{h,m,swift}"
    ua.dependency 'AllFiles/Core'
    ua.dependency 'RxSwift', '~> 5.0.0'
    ua.dependency 'RxCocoa', '~> 5.0'
  end

  spec.subspec 'Data' do |da|
    da.source_files = "AllFiles/Data/**/*.{h,m,swift}"
  end

  spec.subspec 'Storage' do |sa|
    sa.source_files = "AllFiles/Storage/**/*.{h,m,swift}"
    sa.dependency 'AllFiles/Data'
    sa.dependency 'RealmSwift', '5.0.0-beta.2'
  end

  spec.subspec 'Analytics' do |as|
    as.source_files = "AllFiles/Analytics/**/*.{h,m,swift}"
    as.dependency 'FirebaseAnalytics', '~> 6.1'
    as.dependency 'AllFiles/Core'
  end
end

Что мне здесь не хватает?


person Idanis    schedule 17.06.2020    source источник
comment
Какая команда проверки? Вы имеете в виду lint?   -  person matt    schedule 17.06.2020
comment
@матовый да, я имею в виду lint   -  person Idanis    schedule 17.06.2020
comment
Итак, дубликат stackoverflow.com/questions/27303475/? В любом случае вам нужно показать свой код. Что именно вы сказали, и каков был ответ?   -  person matt    schedule 17.06.2020
comment
@matt Я посмотрел ссылку, но не смог заставить ее работать. Я добавил свой код.   -  person Idanis    schedule 18.06.2020