我只是在健身房里使用了以下选项:
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来完成这个任务吗?我不想把所有的东西都放在分开的仓库里。我只需要在这里做一个改变;)
编辑
也许供给就是解决这个问题的原因?
发布于 2022-01-20 20:03:45
我以前使用过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)}"
}
}
)
endmatch_type值是以下之一:
match_type.export:'ad-hoc'还是'app-store'
match_type.profile:'AdHoc'还是'AppStore'
更多信息可在“健身房”官方文件中获得。
https://stackoverflow.com/questions/70742795
复制相似问题