[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:
Daniel Arantes Loverde
2026-07-31 09:38:29 -03:00
parent 47cf46e007
commit 3e82e6e1fe

View File

@@ -12,7 +12,7 @@ lane :assemble do |options|
sdk: "iphoneos", sdk: "iphoneos",
export_method: ENV["BITRISE_DISTRIBUTION_METHOD"] || "app-store", export_method: ENV["BITRISE_DISTRIBUTION_METHOD"] || "app-store",
xcconfig: "fastlane/AppStore.xcconfig", 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", derived_data_path: "../.build/Darwin/DerivedData",
output_directory: "../.build/fastlane/Darwin", output_directory: "../.build/fastlane/Darwin",
skip_archive: ENV["FASTLANE_SKIP_ARCHIVE"] == "YES", skip_archive: ENV["FASTLANE_SKIP_ARCHIVE"] == "YES",