From c8f063ccc5d72a7b1b74433d4fd8183d5cdb17ac Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 6 Oct 2024 20:53:42 -0700 Subject: [PATCH] Add .debug to app bundle ID for Mac debug version. --- NetNewsWire.xcodeproj/project.pbxproj | 12 +++-- .../NetNewsWire_macapp_target _debug.xcconfig | 39 ++++++++++++++++ ...Wire_safariextension_target_debug.xcconfig | 43 ++++++++++++++++++ ...sWire_shareextension_target_debug.xcconfig | 44 +++++++++++++++++++ 4 files changed, 135 insertions(+), 3 deletions(-) create mode 100644 xcconfig/NetNewsWire_macapp_target _debug.xcconfig create mode 100644 xcconfig/NetNewsWire_safariextension_target_debug.xcconfig create mode 100644 xcconfig/NetNewsWire_shareextension_target_debug.xcconfig diff --git a/NetNewsWire.xcodeproj/project.pbxproj b/NetNewsWire.xcodeproj/project.pbxproj index d2a3b2d43..1c682d0fe 100644 --- a/NetNewsWire.xcodeproj/project.pbxproj +++ b/NetNewsWire.xcodeproj/project.pbxproj @@ -956,6 +956,9 @@ 8426119D1FCB6ED40086A189 /* HTMLMetadataDownloader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HTMLMetadataDownloader.swift; sourceTree = ""; }; 842E45CD1ED8C308000A8B52 /* AppNotifications.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppNotifications.swift; sourceTree = ""; }; 842E45DC1ED8C54B000A8B52 /* Browser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Browser.swift; sourceTree = ""; }; + 84308B512CB1A42D004AF552 /* NetNewsWire_macapp_target _debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "NetNewsWire_macapp_target _debug.xcconfig"; sourceTree = ""; }; + 84308B522CB38AC4004AF552 /* NetNewsWire_shareextension_target_debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = NetNewsWire_shareextension_target_debug.xcconfig; sourceTree = ""; }; + 84308B532CB38ACB004AF552 /* NetNewsWire_safariextension_target_debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = NetNewsWire_safariextension_target_debug.xcconfig; sourceTree = ""; }; 843EA3EA2BFC293B003F2E97 /* Mac.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Mac.xctestplan; sourceTree = ""; }; 84411E701FE5FBFA004B527F /* SmallIconProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SmallIconProvider.swift; sourceTree = ""; }; 8444C8F11FED81840051386C /* OPMLExporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OPMLExporter.swift; sourceTree = ""; }; @@ -2290,12 +2293,15 @@ 515D4FCE2325B3D000EE1167 /* NetNewsWire_iOSshareextension_target.xcconfig */, 1768140A2564BB8300D98635 /* NetNewsWire_iOSwidgetextension_target.xcconfig */, 518B2EE92351B4C200400001 /* NetNewsWire_iOSTests_target.xcconfig */, + 84308B512CB1A42D004AF552 /* NetNewsWire_macapp_target _debug.xcconfig */, D5907CE02002F0FA005947E5 /* NetNewsWire_macapp_target.xcconfig */, D5907CDD2002F0BE005947E5 /* NetNewsWire_project_debug.xcconfig */, D5907CDC2002F0BE005947E5 /* NetNewsWire_project_release.xcconfig */, D5907CDE2002F0BE005947E5 /* NetNewsWire_project.xcconfig */, D519E74722EE553300923F27 /* NetNewsWire_safariextension_target.xcconfig */, + 84308B532CB38ACB004AF552 /* NetNewsWire_safariextension_target_debug.xcconfig */, 510C418724E5D2E3008226FD /* NetNewsWire_shareextension_target.xcconfig */, + 84308B522CB38AC4004AF552 /* NetNewsWire_shareextension_target_debug.xcconfig */, D5907CDF2002F0F9005947E5 /* NetNewsWireTests_target.xcconfig */, ); path = xcconfig; @@ -3580,7 +3586,7 @@ }; 510C416A24E5CDE3008226FD /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 510C418724E5D2E3008226FD /* NetNewsWire_shareextension_target.xcconfig */; + baseConfigurationReference = 84308B522CB38AC4004AF552 /* NetNewsWire_shareextension_target_debug.xcconfig */; buildSettings = { }; name = Debug; @@ -3636,7 +3642,7 @@ }; 6581C74720CED60100F4AD34 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = D519E74722EE553300923F27 /* NetNewsWire_safariextension_target.xcconfig */; + baseConfigurationReference = 84308B532CB38ACB004AF552 /* NetNewsWire_safariextension_target_debug.xcconfig */; buildSettings = { }; name = Debug; @@ -3678,7 +3684,7 @@ }; 849C647B1ED37A5D003D8FC0 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = D5907CE02002F0FA005947E5 /* NetNewsWire_macapp_target.xcconfig */; + baseConfigurationReference = 84308B512CB1A42D004AF552 /* NetNewsWire_macapp_target _debug.xcconfig */; buildSettings = { }; name = Debug; diff --git a/xcconfig/NetNewsWire_macapp_target _debug.xcconfig b/xcconfig/NetNewsWire_macapp_target _debug.xcconfig new file mode 100644 index 000000000..abd3de42c --- /dev/null +++ b/xcconfig/NetNewsWire_macapp_target _debug.xcconfig @@ -0,0 +1,39 @@ +CODE_SIGN_IDENTITY = Mac Developer +DEVELOPMENT_TEAM = M8L2WTLA8W +CODE_SIGN_STYLE = Automatic +ORGANIZATION_IDENTIFIER = com.ranchero +PROVISIONING_PROFILE_SPECIFIER = +DEVELOPER_ENTITLEMENTS = + +// 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/DeveloperSettings.xcconfig" +#include "./common/NetNewsWire_macapp_target_common.xcconfig" + +CODE_SIGN_ENTITLEMENTS = Mac/Resources/NetNewsWire$(DEVELOPER_ENTITLEMENTS).entitlements +PRODUCT_BUNDLE_IDENTIFIER = $(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen.debug diff --git a/xcconfig/NetNewsWire_safariextension_target_debug.xcconfig b/xcconfig/NetNewsWire_safariextension_target_debug.xcconfig new file mode 100644 index 000000000..205ec8839 --- /dev/null +++ b/xcconfig/NetNewsWire_safariextension_target_debug.xcconfig @@ -0,0 +1,43 @@ + +CODE_SIGN_IDENTITY = Mac Developer +DEVELOPMENT_TEAM = M8L2WTLA8W +CODE_SIGN_STYLE = Automatic +ORGANIZATION_IDENTIFIER = com.ranchero +PROVISIONING_PROFILE_SPECIFIER = + +// 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 +// 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/DeveloperSettings.xcconfig" +#include "./common/NetNewsWire_mac_target_common.xcconfig" + +CODE_SIGN_ENTITLEMENTS = Mac/SafariExtension/Subscribe_to_Feed.entitlements +INFOPLIST_FILE = Mac/SafariExtension/Info.plist +LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks +PRODUCT_BUNDLE_IDENTIFIER = $(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen.debug.SubscribeToFeed +PRODUCT_NAME = $(TARGET_NAME) + +SDKROOT = macosx diff --git a/xcconfig/NetNewsWire_shareextension_target_debug.xcconfig b/xcconfig/NetNewsWire_shareextension_target_debug.xcconfig new file mode 100644 index 000000000..709dcc5be --- /dev/null +++ b/xcconfig/NetNewsWire_shareextension_target_debug.xcconfig @@ -0,0 +1,44 @@ +CODE_SIGN_IDENTITY = Mac Developer +DEVELOPMENT_TEAM = M8L2WTLA8W +CODE_SIGN_STYLE = Automatic +ORGANIZATION_IDENTIFIER = com.ranchero +PROVISIONING_PROFILE_SPECIFIER = +DEVELOPER_ENTITLEMENTS = + +// 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 +// 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/DeveloperSettings.xcconfig" +#include "./common/NetNewsWire_mac_target_common.xcconfig" + +CODE_SIGN_ENTITLEMENTS = Mac/ShareExtension/ShareExtension.entitlements +INFOPLIST_FILE = Mac/ShareExtension/Info.plist +LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks @executable_path/../../../../Frameworks +PRODUCT_BUNDLE_IDENTIFIER = $(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen.debug.Mac.ShareExtension +PRODUCT_NAME = $(TARGET_NAME) +ASSETCATALOG_COMPILER_APPICON_NAME = + +SDKROOT = macosx