diff --git a/Darwin/PediFoods.xcodeproj/project.pbxproj b/Darwin/PediFoods.xcodeproj/project.pbxproj index 7b8fcbe..9f94c21 100644 --- a/Darwin/PediFoods.xcodeproj/project.pbxproj +++ b/Darwin/PediFoods.xcodeproj/project.pbxproj @@ -195,6 +195,8 @@ isa = XCBuildConfiguration; baseConfigurationReference = 496EB72F2A6AE4DE00C1253B /* PediFoods.xcconfig */; buildSettings = { + CODE_SIGN_IDENTITY = "Apple Distribution"; + CODE_SIGN_STYLE = Manual; DEVELOPMENT_TEAM = K4E5BZMM4V; ENABLE_PREVIEWS = YES; INFOPLIST_KEY_CFBundleDisplayName = "Pedi Foods"; @@ -202,6 +204,7 @@ INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + PROVISIONING_PROFILE_SPECIFIER = "com.br.pedifoods.app AppStore"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; TARGETED_DEVICE_FAMILY = 1; diff --git a/Darwin/fastlane/Fastfile b/Darwin/fastlane/Fastfile index 656ae00..17b1135 100644 --- a/Darwin/fastlane/Fastfile +++ b/Darwin/fastlane/Fastfile @@ -8,21 +8,15 @@ 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 - + # Manual signing (team/identity/profile) for the "PediFoods App" target is + # baked directly into PediFoods.xcodeproj's own project settings - not + # overridden here. A command-line xcargs/update_code_signing_settings + # override applies to the entire build graph, including the SPM package's + # own ephemeral targets (PediFoods, pedi-foods_PediFoods) which explicitly + # reject provisioning profiles and must stay Automatic; there's no way to + # scope a global override to just one target, and update_code_signing_settings + # itself can't parse this project's newer .pbxproj format anyway (gem + # limitation, not fixable by updating the gem). build_app( scheme: "PediFoods App", sdk: "iphoneos",