podspec中的“源”应用于私有托管的本机反应库?

问题描述 投票:1回答:1

我正在为ios开发一个私有的react-native库。该代码托管在私有git repo上,并且只有少数人可以访问。我目前拥有的podspec文件是这样的:


Pod::Spec.new do |s|
  s.name         = "SomeName"
  s.version      = "0.0.1"
  s.summary      = "SomeSummary"
  s.description  = <<-DESC
                  SomeDescription
                   DESC
  s.homepage     = "https://somehomepage.com"
  s.platform     = :ios, "9.0"
  s.source_files  = "*.{h,m}"
  s.requires_arc = true
  s.author       = "someAuthor"
  s.dependency "React"
end

我遇到的问题是,当我在本地react-native应用程序上使用库并进行pod安装时,出现错误:

The `SomeName` pod failed to validate due to 1 error:
    - WARN  | attributes: Missing required attribute `license`.
    - ERROR | attributes: Missing required attribute `source`.
    - WARN  | license: Missing license type.
    - WARN  | description: The description is equal to the summary.

在这种情况下,source应该是什么?

react-native cocoapods react-native-ios
1个回答
1
投票

source应指定私有github存储库。请参阅文档和示例here

© www.soinside.com 2019 - 2024. All rights reserved.