我正在尝试创建一个称为“实验”的新框架。它为我可以使用它构建的任何应用程序包装了Firebase RemoteConfig API。
当我运行以下命令pod lib lint Experiments.podspec
时,我得到以下输出错误。
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE...
- NOTE...
.
.
- ERROR | [iOS] xcodebuild: <path/to/file>: error: no such module 'Firebase'
这是我的Podfile
platform :ios, '13.0'
target 'Experiments' do
pod 'Firebase'
pod 'Firebase/RemoteConfig'
target 'ExperimentsTests' do
# Pods for testing
end
end
这是我的podspec文件的相关部分
Pod::Spec.new do |s|
s.name = 'Experiments'
s.version = '0.1.3'
s.summary = 'This pod allows A/B Testing.'
s.description = <<-DESC
This pod facilitates AB Testing. Currently, it is powered by Firebase only.
DESC
s.license = { :type => 'MIT', :file => 'LICENSE.txt' }
s.ios.deployment_target = '13.0'
s.source_files = "Experiments/*.{swift}"
s.swift_version = "5.0"
s.frameworks = 'UIKit', 'Foundation'
s.dependency 'Firebase'
s.dependency 'Firebase/RemoteConfig'
end
pod install
之后,我能够在XCode上成功构建我的框架。
我尝试在s.static_framework = true
文件中使用.podspec
,但是我一直遇到错误。
如果需要澄清,请发表评论。
答案 0 :(得分:0)
s.static_framework = true
是必需的。
可能没有理由依赖Firebase
窗格。
s.dependency 'FirebaseRemoteConfig'
没有斜杠的可能性更大。
如果您仍然看到这些更改的错误,请将其包含在问题中。