From b076937eed16d09cb59d6efa3935f3b5d0b83ace Mon Sep 17 00:00:00 2001 From: Evan Anderson Date: Sun, 7 Dec 2025 13:41:26 +0100 Subject: [PATCH] Fix codesign setup and inheritence * This appears to have been broken by ed3d1a9. Fix the inheritence and cleanup the structure a bit --- setup.sh | 4 ++- xcconfig/NetNewsWireTests_target.xcconfig | 4 --- xcconfig/NetNewsWire_iOSTests_target.xcconfig | 3 -- xcconfig/NetNewsWire_iOSapp_target.xcconfig | 30 ------------------- xcconfig/NetNewsWire_macapp_target.xcconfig | 3 -- .../NetNewsWire_codesigning_common.xcconfig | 4 +++ .../NetNewsWire_iOSextension_common.xcconfig | 2 -- .../NetNewsWire_macextension_common.xcconfig | 2 -- 8 files changed, 7 insertions(+), 45 deletions(-) diff --git a/setup.sh b/setup.sh index 675c4fd63..46a0a2b9a 100755 --- a/setup.sh +++ b/setup.sh @@ -29,7 +29,9 @@ mkdir -p ../SharedXcodeSettings echo Creating DeveloperSettings.xcconfig cat <> ../SharedXcodeSettings/DeveloperSettings.xcconfig -CODE_SIGN_IDENTITY = Mac Developer +CODE_SIGN_IDENTITY[sdk=macosx*] = Mac Developer +CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer +CODE_SIGN_IDENTITY[sdk=iphonesimulator*] = iPhone Developer DEVELOPMENT_TEAM = $devTeamID CODE_SIGN_STYLE = Automatic ORGANIZATION_IDENTIFIER = $devOrgName diff --git a/xcconfig/NetNewsWireTests_target.xcconfig b/xcconfig/NetNewsWireTests_target.xcconfig index 978e452fa..6b3377ad7 100644 --- a/xcconfig/NetNewsWireTests_target.xcconfig +++ b/xcconfig/NetNewsWireTests_target.xcconfig @@ -1,9 +1,5 @@ #include "./common/NetNewsWire_codesigning_common.xcconfig" -CODE_SIGN_IDENTITY = Apple Development -DEVELOPMENT_TEAM = M8L2WTLA8W -CODE_SIGN_STYLE = Automatic - BUNDLE_LOADER = $(TEST_HOST) COMBINE_HIDPI_IMAGES = YES INFOPLIST_FILE = Tests/NetNewsWireTests/Info.plist diff --git a/xcconfig/NetNewsWire_iOSTests_target.xcconfig b/xcconfig/NetNewsWire_iOSTests_target.xcconfig index e09460b14..9867e0512 100644 --- a/xcconfig/NetNewsWire_iOSTests_target.xcconfig +++ b/xcconfig/NetNewsWire_iOSTests_target.xcconfig @@ -1,8 +1,5 @@ #include "./common/NetNewsWire_codesigning_common.xcconfig" -CODE_SIGN_IDENTITY = Apple Development -DEVELOPMENT_TEAM = M8L2WTLA8W - BUNDLE_LOADER = $(TEST_HOST) COMBINE_HIDPI_IMAGES = YES INFOPLIST_FILE = Tests/NetNewsWire-iOSTests/Info.plist diff --git a/xcconfig/NetNewsWire_iOSapp_target.xcconfig b/xcconfig/NetNewsWire_iOSapp_target.xcconfig index bdb6811d8..a1857aa8d 100644 --- a/xcconfig/NetNewsWire_iOSapp_target.xcconfig +++ b/xcconfig/NetNewsWire_iOSapp_target.xcconfig @@ -1,33 +1,3 @@ -CODE_SIGN_IDENTITY = iPhone Developer -DEVELOPMENT_TEAM = M8L2WTLA8W - -// developers can locally override the Xcode settings for code signing -// by creating a DeveloperSettings.xcconfig file locally at the appropriate path -// This allows a pristine project to have code signing set up with the appropriate -// developer ID and certificates, and for dev to be able to have local settings -// without needing to check in anything into source control -// -// As an example, make a ../../SharedXcodeSettings/DeveloperSettings.xcconfig file and -// give it the contents -// -// CODE_SIGN_IDENTITY[sdk=macosx*] = Mac Developer -// CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer -// CODE_SIGN_IDENTITY[sdk=iphonesimulator*] = iPhone Developer -// DEVELOPMENT_TEAM = -// ORGANIZATION_IDENTIFIER = -// CODE_SIGN_STYLE = Automatic -// DEVELOPER_ENTITLEMENTS = -dev -// PROVISIONING_PROFILE_SPECIFIER = -// -// And you should be able to build without code signing errors and without modifying -// the NetNewsWire Xcode project. -// -// Example: if your NetNewsWire Xcode project file is at -// /Users/Shared/git/NetNewsWire/NetNewsWire.xcodeproj -// create your DeveloperSettings.xcconfig file at -// /Users/Shared/git/SharedXcodeSettings/DeveloperSettings.xcconfig -// - #include? "../../SharedXcodeSettings/ProjectSettings.xcconfig" #include "./common/NetNewsWire_codesigning_common.xcconfig" #include "./common/NetNewsWire_ios_target_common.xcconfig" diff --git a/xcconfig/NetNewsWire_macapp_target.xcconfig b/xcconfig/NetNewsWire_macapp_target.xcconfig index daa610972..201bb31a0 100644 --- a/xcconfig/NetNewsWire_macapp_target.xcconfig +++ b/xcconfig/NetNewsWire_macapp_target.xcconfig @@ -1,8 +1,5 @@ #include "./common/NetNewsWire_codesigning_common.xcconfig" #include "./common/NetNewsWire_macapp_target_common.xcconfig" -CODE_SIGN_IDENTITY = Mac Developer -DEVELOPMENT_TEAM = M8L2WTLA8W - CODE_SIGN_ENTITLEMENTS = Mac/Resources/NetNewsWire$(DEVELOPER_ENTITLEMENTS).entitlements PRODUCT_BUNDLE_IDENTIFIER = $(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen diff --git a/xcconfig/common/NetNewsWire_codesigning_common.xcconfig b/xcconfig/common/NetNewsWire_codesigning_common.xcconfig index c93c39fb7..63b4a10db 100644 --- a/xcconfig/common/NetNewsWire_codesigning_common.xcconfig +++ b/xcconfig/common/NetNewsWire_codesigning_common.xcconfig @@ -1,7 +1,11 @@ // Common code signing configuration for all NetNewsWire targets +CODE_SIGN_IDENTITY[sdk=macosx*] = Mac Developer +CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer +CODE_SIGN_IDENTITY[sdk=iphonesimulator*] = iPhone Developer CODE_SIGN_STYLE = Automatic ORGANIZATION_IDENTIFIER = com.ranchero +DEVELOPMENT_TEAM = M8L2WTLA8W PROVISIONING_PROFILE_SPECIFIER = DEVELOPER_ENTITLEMENTS = diff --git a/xcconfig/common/NetNewsWire_iOSextension_common.xcconfig b/xcconfig/common/NetNewsWire_iOSextension_common.xcconfig index 79b3f9752..05d987a8a 100644 --- a/xcconfig/common/NetNewsWire_iOSextension_common.xcconfig +++ b/xcconfig/common/NetNewsWire_iOSextension_common.xcconfig @@ -4,8 +4,6 @@ #include "./NetNewsWire_codesigning_common.xcconfig" #include "./NetNewsWire_ios_target_common.xcconfig" -CODE_SIGN_IDENTITY = iPhone Developer -DEVELOPMENT_TEAM = M8L2WTLA8W ENABLE_HARDENED_RUNTIME = YES LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../../Frameworks PRODUCT_NAME = $(TARGET_NAME) diff --git a/xcconfig/common/NetNewsWire_macextension_common.xcconfig b/xcconfig/common/NetNewsWire_macextension_common.xcconfig index 8cd92690e..a3d229f33 100644 --- a/xcconfig/common/NetNewsWire_macextension_common.xcconfig +++ b/xcconfig/common/NetNewsWire_macextension_common.xcconfig @@ -3,8 +3,6 @@ #include "./NetNewsWire_codesigning_common.xcconfig" #include "./NetNewsWire_mac_target_common.xcconfig" -CODE_SIGN_IDENTITY = Mac Developer -DEVELOPMENT_TEAM = M8L2WTLA8W ENABLE_HARDENED_RUNTIME = YES SDKROOT = macosx PRODUCT_NAME = $(TARGET_NAME)