[macos-runner] Force manual code signing in the assemble lane's xcargs
xcodebuild ignored sigh's downloaded provisioning profile because the Xcode project's signing style is Automatic, which needs an interactive Apple ID session unavailable in headless CI. Override at build time via xcargs instead of changing the checked-in project signing settings.
This commit is contained in:
@@ -12,7 +12,7 @@ lane :assemble do |options|
|
||||
sdk: "iphoneos",
|
||||
export_method: ENV["BITRISE_DISTRIBUTION_METHOD"] || "app-store",
|
||||
xcconfig: "fastlane/AppStore.xcconfig",
|
||||
xcargs: "-skipPackagePluginValidation -skipMacroValidation",
|
||||
xcargs: "-skipPackagePluginValidation -skipMacroValidation CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY=\"Apple Distribution\" PROVISIONING_PROFILE_SPECIFIER=\"com.br.pedifoods.app AppStore\"",
|
||||
derived_data_path: "../.build/Darwin/DerivedData",
|
||||
output_directory: "../.build/fastlane/Darwin",
|
||||
skip_archive: ENV["FASTLANE_SKIP_ARCHIVE"] == "YES",
|
||||
|
||||
Reference in New Issue
Block a user