[英]How do I use fastlane to compile my iOS app into an .xcarchive, then separately sign and make an IPA?
[英]Fastlane, how do I use match to indicate PROVISIONING_PROFILE_SPECIFIER for my host and share extension in ios app?
我只是在健身房使用以下选项:
def archive(options)
build_ios_app(
workspace: PLZ_WORKSPACE,
scheme: options[:scheme],
clean: true,
export_method: options[:adhoc] ? "ad-hoc" : "app-store",
output_directory: OUTPUT_PATH,
export_options: {
signingStyle: "manual", #added to make it working
provisioningProfiles: {
options[:bundle_id] => options[:provisioning],
options[:share_bundle_id] => options[:share_provisioning]
},
},
#xcargs: { :PROVISIONING_PROFILE_SPECIFIER => options[:provisioning] },
)
end
必须以不同的方式为两个目标定义注释行:
对于我的主机应用程序( options[:bundle_id]
):
#xcargs: { :PROVISIONING_PROFILE_SPECIFIER => options[:provisioning] },
对于我的共享扩展( options[:share_bundle_id]
)
#xcargs: { :PROVISIONING_PROFILE_SPECIFIER => options[:share_provisioning] },
有没有办法在这里使用 fastlane match 做到这一点? 我不想将所有内容都保存在单独的存储库中。 我只需要在此处进行一项更改;)
谢谢您的帮助。
编辑
我将为帮助我的人创造并奖励 200 甚至更多的赏金。 非常感谢;)
或者也许update_project_provisioning是解决它的情况?
我之前使用了xcargs
选项,但是对于两个配置文件,它可以在没有这个的情况下工作,并且只使用export_method
和export_options
:
def xcode_build
gym(
workspace: "ios/#{xcode_workspace}.xcworkspace",
scheme: xcode_workspace,
output_directory: 'ios',
output_name: File.basename(Config.artifacts_path.ios),
export_method: match_type.export,
export_options: {
signingStyle: 'manual',
provisioningProfiles: {
app_identifier.fetch(:default) => "match #{match_type.profile} #{app_identifier.fetch(:default)}",
app_identifier.fetch(:onesignal) => "match #{match_type.profile} #{app_identifier.fetch(:onesignal)}"
}
}
)
end
match_type
值是以下之一:
match_type.export
: 'ad-hoc'
或'app-store'
match_type.profile
: 'AdHoc'
或'AppStore'
更多信息可在“健身房”官方文档中找到。
https://docs.fastlane.tools/actions/gym/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.