From 333e2884180a4163635f5bead6d06cb65bdbdcba Mon Sep 17 00:00:00 2001 From: Rune Olsen Date: Mon, 20 Jul 2026 07:33:51 +0200 Subject: [PATCH] Fix Help Book keys missing from the built Info.plist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GENERATE_INFOPLIST_FILE = YES with no INFOPLIST_FILE meant Xcode synthesized Info.plist purely from INFOPLIST_KEY_* build settings and silently ignored oAI/Info.plist on disk — so CFBundleHelpBookName/ CFBundleHelpBookFolder never made it into the built app. NSHelpManager therefore couldn't resolve the book and macOS showed the generic Help Center instead of oAI's help content (previous commit 74c8be8 fixed openHelp() to call NSHelpManager, but that call had nothing to find). Fix: point INFOPLIST_FILE at oAI/Info.plist so Xcode merges its extra keys into the generated Info.plist, and add a synchronized-group membership exception so Info.plist isn't also copied into Resources (would otherwise produce a duplicate-file build warning). --- oAI.xcodeproj/project.pbxproj | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/oAI.xcodeproj/project.pbxproj b/oAI.xcodeproj/project.pbxproj index 3e2321f..a412e96 100644 --- a/oAI.xcodeproj/project.pbxproj +++ b/oAI.xcodeproj/project.pbxproj @@ -15,9 +15,22 @@ A550A6622F3B72EA00136F2B /* oAI.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = oAI.app; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ +/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ + 911C4D0E69E11B84C61453DC /* Exceptions for "oAI" folder in "oAI" target */ = { + isa = PBXFileSystemSynchronizedBuildFileExceptionSet; + membershipExceptions = ( + Info.plist, + ); + target = A550A6612F3B72EA00136F2B /* oAI */; + }; +/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ + /* Begin PBXFileSystemSynchronizedRootGroup section */ A550A6642F3B72EA00136F2B /* oAI */ = { isa = PBXFileSystemSynchronizedRootGroup; + exceptions = ( + 911C4D0E69E11B84C61453DC /* Exceptions for "oAI" folder in "oAI" target */, + ); path = oAI; sourceTree = ""; }; @@ -270,6 +283,7 @@ ENABLE_PREVIEWS = YES; ENABLE_USER_SELECTED_FILES = readonly; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "oAI/Info.plist"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; INFOPLIST_KEY_NSCalendarsFullAccessUsageDescription = "oAI can read and create calendar events when you ask it to, if you enable Calendar access in Settings."; INFOPLIST_KEY_NSContactsUsageDescription = "oAI can search your contacts when you ask it to, if you enable Contacts access in Settings."; @@ -319,6 +333,7 @@ ENABLE_PREVIEWS = YES; ENABLE_USER_SELECTED_FILES = readonly; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "oAI/Info.plist"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; INFOPLIST_KEY_NSCalendarsFullAccessUsageDescription = "oAI can read and create calendar events when you ask it to, if you enable Calendar access in Settings."; INFOPLIST_KEY_NSContactsUsageDescription = "oAI can search your contacts when you ask it to, if you enable Contacts access in Settings.";