是否可以在podfile
上添加环境变量而不必创建自定义的shell脚本来替换podfile
中的字符串?
示例:
platform :ios,'10.0'
source 'https://github.com/Cocoapods/Specs.git'
source 'https://<username>@bitbucket.org/awesometeamname/ios-private-specs.git'
use_modular_headers!
target 'a-generic-app-name' do
use_frameworks!
pod 'MaybeFirebase'
pod 'AnotherSDK'
pod 'AlamofireOfCourse'
pod 'WhoUsesRxSwiftAnyway'
end
其背后的原因是,我们正在使用通过ssh连接到的私有pod spec存储库,开发人员将必须始终Push或手动忽略Pushing用户名,是否可以通过命令行进行设置?
我目前的解决方案是,我有一个脚本而不是调用pod install
来执行以下操作: