react-native - 对于私有(private)托管的 React-Native 库,podspec 中的 "source"应该是什么?

标签 react-native cocoapods react-native-ios

我正在为 ios 开发一个私有(private)的 react native 库。 该代码托管在私有(private) git 存储库上,只有少数人可以访问。 我当前拥有的 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 应指定私有(private) github 存储库。请参阅文档和示例 here .

关于react-native - 对于私有(private)托管的 React-Native 库,podspec 中的 "source"应该是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59619686/

相关文章:

validation - Podspec 无法通过验证,但没有记录错误

react-native - 如何使用数据中对象的嵌套循环呈现 SectionList

react-native - react native 文本输入键盘如何显示点而不是逗号?

react-native 0.42 预期数组计数为 16

javascript - 用多个值 react native setState

ios - iOS 框架的崩溃报告器

objective-c - 在 objective-c 或 swift 中覆盖 pod 文件方法的最佳实践是什么?

javascript - 为什么我得到 "undefined is not an object (evaluating PropTypes.shape)"?

javascript - 处理 Async Await 以将 Firebase 与 React Native 结合使用

ios - 如何从 React Native 应用程序打开 iOS 画廊应用程序