我正在为 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/