Merge pull request '[macos-runner] Scope manual signing to the app target only' (#35) from ci/gitea-actions/macos-runner into main
Reviewed-on: Loverde-Company-LTDA/Pedi-Foods-Skip#35
This commit is contained in:
@@ -7,12 +7,28 @@ default_platform(:ios)
|
||||
lane :assemble do |options|
|
||||
# only build the iOS side of the app
|
||||
ENV["SKIP_ZERO"] = "true"
|
||||
|
||||
# Scope manual signing to just the app target - the SPM package's own
|
||||
# generated targets (PediFoods, pedi-foods_PediFoods) explicitly don't
|
||||
# support provisioning profiles and must stay on Automatic, so a blanket
|
||||
# xcargs override breaks them.
|
||||
if ENV["DEVELOPMENT_TEAM"]
|
||||
update_code_signing_settings(
|
||||
use_automatic_signing: false,
|
||||
path: "PediFoods.xcodeproj",
|
||||
code_sign_identity: "Apple Distribution",
|
||||
profile_name: "com.br.pedifoods.app AppStore",
|
||||
team_id: ENV["DEVELOPMENT_TEAM"],
|
||||
targets: ["PediFoods App"]
|
||||
)
|
||||
end
|
||||
|
||||
build_app(
|
||||
scheme: "PediFoods App",
|
||||
sdk: "iphoneos",
|
||||
export_method: ENV["BITRISE_DISTRIBUTION_METHOD"] || "app-store",
|
||||
xcconfig: "fastlane/AppStore.xcconfig",
|
||||
xcargs: "-skipPackagePluginValidation -skipMacroValidation CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY=\"Apple Distribution\" PROVISIONING_PROFILE_SPECIFIER=\"com.br.pedifoods.app AppStore\" DEVELOPMENT_TEAM=#{ENV['DEVELOPMENT_TEAM']}",
|
||||
xcargs: "-skipPackagePluginValidation -skipMacroValidation",
|
||||
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