Modern Apps git

← Modern-Apps.git

findfamily-ios: SwiftPM/xtool layout, version.txt versioning, prebuilt assets

Commit
b3f227962346f1de67715849f951ba42905cadbb
Author
Vayun Mathur <[email protected]>
When
2026-11-05 20:04 UTC (1 month ago)
Parents
b202d35
Convert the imported iOS app so it can be built headlessly by xtool on
the Linux release builder and versioned like the rest of Modern-Apps.

- Package.swift: library target FindFamily rooted at FindFamilyiOS/
  (xtool needs a library product). PQCStubs.c is excluded: nothing in
  Swift references the pqc_* symbols (crypto is pure Swift) and
  SwiftPM cannot mix C into a Swift target.
- xtool.yml: bundle cc.findfamily.app.1, infoPath, and an
  assetCatalog.compiledDir key implemented in the vayun-mathur/xtool
  fork (actool is proprietary and Mac-only).
- Info.plist: drop $(...) build-setting placeholders (xtool fills the
  bundle keys itself and would otherwise ship literal "$(...)") and
  the version keys; set CFBundleDisplayName and category explicitly
  since they were Xcode build settings before.
- scripts/stamp-version.sh: CFBundleVersion = version.txt line 1,
  CFBundleShortVersionString = line 2 without "v"/trailing letters
  (v2.6.11b -> 2.6.11), replacing the separate 4.0 (4) scheme.
- scripts/assets.sh compile|check + Resources/: Assets.car, icon PNG
  and partial Info.plist compiled with actool on a Mac, with a source
  hash so the builder fails on a stale catalog.
- Remove the hand-maintained FindFamilyiOS.xcodeproj; open
  Package.swift or generate a project with xtool instead.
- AGENTS.md/README for the module; root AGENTS.md app index entry.

Verified: xcodebuild -scheme FindFamily -destination
'generic/platform=iOS' build -> BUILD SUCCEEDED; stamp-version.sh on
a copy of Info.plist -> 2.6.11 (20261028); assets.sh check passes.

Diff

apple/FindFamily/.gitignore
diff --git a/apple/FindFamily/.gitignore b/apple/FindFamily/.gitignoreindex e43b0f9889..97d106d996 100644--- a/apple/FindFamily/.gitignore+++ b/apple/FindFamily/.gitignore@@ -1 +1,6 @@ .DS_Store+.build/+.swiftpm/+xtool/+*.xcodeproj/+*.ipa
apple/FindFamily/AGENTS.md
diff --git a/apple/FindFamily/AGENTS.md b/apple/FindFamily/AGENTS.mdnew file mode 100644index 0000000000..fe7270f17d--- /dev/null+++ b/apple/FindFamily/AGENTS.md@@ -0,0 +1,31 @@+# AGENTS.md — apple/FindFamily (FindFamily for iOS)++SwiftUI iPhone app, bundle `cc.findfamily.app.1`, team `M42H545N93`, iOS 18+. Imported with history from+`vayun-mathur/Find-Family-iOS`. Android counterpart: `findfamily/` (same relay protocol, same PQC formats).++## Layout+- `Package.swift`: SwiftPM library target `FindFamily` rooted at `FindFamilyiOS/` (xtool requires a library product).+- `xtool.yml`: bundle id, `infoPath`, and `assetCatalog.compiledDir` (only in the `vayun-mathur/xtool` fork).+- `FindFamilyiOS/Info.plist`: no `$(...)` build settings and no version keys; xtool fills in the bundle keys.+- `Resources/`: `Assets.car` + loose icon PNG + `assets-partial-Info.plist`, built from `FindFamilyiOS/Assets.xcassets`.+- `FindFamilyiOS/Crypto/PQCStubs.c` is excluded from the build (unreferenced; documents the future Rust PQC link).++## Rules+- Versions come only from root `version.txt`. Never hand-edit `CFBundleVersion` / `CFBundleShortVersionString`.+  `scripts/stamp-version.sh <plist>` writes code=line 1 and short=line 2 (`v2.6.11b` -> `2.6.11`) on the release builder.+- After any change to `Assets.xcassets`, run `scripts/assets.sh compile` on a Mac and commit `Resources/`.+  The release builder runs `scripts/assets.sh check` and fails if the catalog is stale.+- No `.xcodeproj` is committed. For Xcode, open `Package.swift` directly or run `xtool dev generate-xcode-project`+  (the generated project is gitignored).+- Never commit signing material or App Store Connect keys.++## Verify+```+xcodebuild -scheme FindFamily -destination 'generic/platform=iOS' build CODE_SIGNING_ALLOWED=NO   # Mac+xtool dev build                                                                                    # Linux / Mac with the fork+```++## Release+The maproj release pipeline (`../location_share_server/scripts/release-build-ios.sh`) runs after the Android release:+stamp version -> assets check -> `xtool dev build --configuration release --distribution app-store --ipa`+-> `xtool dist upload` -> `xtool dist submit` (creates the App Store version, attaches the build, submits for review).
apple/FindFamily/FindFamilyiOS.xcodeproj/project.pbxproj
diff --git a/apple/FindFamily/FindFamilyiOS.xcodeproj/project.pbxproj b/apple/FindFamily/FindFamilyiOS.xcodeproj/project.pbxprojdeleted file mode 100644index 6d369cd927..0000000000--- a/apple/FindFamily/FindFamilyiOS.xcodeproj/project.pbxproj+++ /dev/null@@ -1,338 +0,0 @@-// !$*UTF8*$!-{-	archiveVersion = 1;-	classes = {-	};-	objectVersion = 71;-	objects = {--/* Begin PBXFileReference section */-		FF0000000000000000000030 /* Find Family.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Find Family.app"; sourceTree = BUILT_PRODUCTS_DIR; };-/* End PBXFileReference section */--/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */-		FF0000000000000000000011 /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = {-			isa = PBXFileSystemSynchronizedBuildFileExceptionSet;-			membershipExceptions = (-				Info.plist,-			);-			target = FF0000000000000000000040 /* FindFamilyiOS */;-		};-/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */--/* Begin PBXFileSystemSynchronizedRootGroup section */-		FF0000000000000000000010 /* FindFamilyiOS */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (FF0000000000000000000011 /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = FindFamilyiOS; sourceTree = "<group>"; };-/* End PBXFileSystemSynchronizedRootGroup section */--/* Begin PBXFrameworksBuildPhase section */-		FF0000000000000000000020 /* Frameworks */ = {-			isa = PBXFrameworksBuildPhase;-			buildActionMask = 2147483647;-			files = (-			);-			runOnlyForDeploymentPostprocessing = 0;-		};-/* End PBXFrameworksBuildPhase section */--/* Begin PBXGroup section */-		FF0000000000000000000001 = {-			isa = PBXGroup;-			children = (-				FF0000000000000000000010 /* FindFamilyiOS */,-				FF0000000000000000000002 /* Products */,-			);-			sourceTree = "<group>";-		};-		FF0000000000000000000002 /* Products */ = {-			isa = PBXGroup;-			children = (-				FF0000000000000000000030 /* Find Family.app */,-			);-			name = Products;-			sourceTree = "<group>";-		};-/* End PBXGroup section */--/* Begin PBXNativeTarget section */-		FF0000000000000000000040 /* FindFamilyiOS */ = {-			isa = PBXNativeTarget;-			buildConfigurationList = FF0000000000000000000050 /* Build configuration list for PBXNativeTarget "FindFamilyiOS" */;-			buildPhases = (-				FF0000000000000000000060 /* Sources */,-				FF0000000000000000000020 /* Frameworks */,-				FF0000000000000000000070 /* Resources */,-			);-			buildRules = (-			);-			dependencies = (-			);-			fileSystemSynchronizedGroups = (-				FF0000000000000000000010 /* FindFamilyiOS */,-			);-			name = FindFamilyiOS;-			productName = FindFamilyiOS;-			productReference = FF0000000000000000000030 /* Find Family.app */;-			productType = "com.apple.product-type.application";-		};-/* End PBXNativeTarget section */--/* Begin PBXProject section */-		FF0000000000000000000000 /* Project object */ = {-			isa = PBXProject;-			attributes = {-				BuildIndependentTargetsInParallel = YES;-				LastSwiftUpdateCheck = 1600;-				LastUpgradeCheck = 1600;-				TargetAttributes = {-					FF0000000000000000000040 = {-						CreatedOnToolsVersion = 16.0;-					};-				};-			};-			buildConfigurationList = FF0000000000000000000080 /* Build configuration list for PBXProject "FindFamilyiOS" */;-			compatibilityVersion = "Xcode 16.0";-			developmentRegion = en;-			hasScannedForEncodings = 0;-			knownRegions = (-				en,-				Base,-			);-			mainGroup = FF0000000000000000000001;-			productRefGroup = FF0000000000000000000002 /* Products */;-			projectDirPath = "";-			projectRoot = "";-			targets = (-				FF0000000000000000000040 /* FindFamilyiOS */,-			);-		};-/* End PBXProject section */--/* Begin PBXResourcesBuildPhase section */-		FF0000000000000000000070 /* Resources */ = {-			isa = PBXResourcesBuildPhase;-			buildActionMask = 2147483647;-			files = (-			);-			runOnlyForDeploymentPostprocessing = 0;-		};-/* End PBXResourcesBuildPhase section */--/* Begin PBXSourcesBuildPhase section */-		FF0000000000000000000060 /* Sources */ = {-			isa = PBXSourcesBuildPhase;-			buildActionMask = 2147483647;-			files = (-			);-			runOnlyForDeploymentPostprocessing = 0;-		};-/* End PBXSourcesBuildPhase section */--/* Begin XCBuildConfiguration section */-		FF0000000000000000000090 /* Debug */ = {-			isa = XCBuildConfiguration;-			buildSettings = {-				ALWAYS_SEARCH_USER_PATHS = NO;-				CLANG_ANALYZER_NONNULL = YES;-				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;-				CLANG_ENABLE_MODULES = YES;-				CLANG_ENABLE_OBJC_ARC = YES;-				CLANG_ENABLE_OBJC_WEAK = YES;-				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;-				CLANG_WARN_BOOL_CONVERSION = YES;-				CLANG_WARN_COMMA = YES;-				CLANG_WARN_CONSTANT_CONVERSION = YES;-				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;-				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;-				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;-				CLANG_WARN_EMPTY_BODY = YES;-				CLANG_WARN_ENUM_CONVERSION = YES;-				CLANG_WARN_INFINITE_RECURSION = YES;-				CLANG_WARN_INT_CONVERSION = YES;-				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;-				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;-				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;-				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;-				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;-				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;-				CLANG_WARN_STRICT_PROTOTYPES = YES;-				CLANG_WARN_SUSPICIOUS_MOVE = YES;-				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;-				CLANG_WARN_UNREACHABLE_CODE = YES;-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;-				COPY_PHASE_STRIP = NO;-				DEBUG_INFORMATION_FORMAT = dwarf;-				ENABLE_STRICT_OBJC_MSGSEND = YES;-				ENABLE_TESTABILITY = YES;-				ENABLE_USER_SCRIPT_SANDBOXING = YES;-				GCC_C_LANGUAGE_STANDARD = gnu17;-				GCC_DYNAMIC_NO_PIC = NO;-				GCC_NO_COMMON_BLOCKS = YES;-				GCC_OPTIMIZATION_LEVEL = 0;-				GCC_PREPROCESSOR_DEFINITIONS = (-					"DEBUG=1",-					"$(inherited)",-				);-				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;-				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;-				GCC_WARN_UNDECLARED_SELECTOR = YES;-				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;-				GCC_WARN_UNUSED_FUNCTION = YES;-				GCC_WARN_UNUSED_VARIABLE = YES;-				IPHONEOS_DEPLOYMENT_TARGET = 18.0;-				LOCALIZATION_PREFERS_STRING_CATALOGS = YES;-				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;-				MTL_FAST_MATH = YES;-				ONLY_ACTIVE_ARCH = YES;-				SDKROOT = iphoneos;-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";-				SWIFT_OPTIMIZATION_LEVEL = "-Onone";-			};-			name = Debug;-		};-		FF0000000000000000000091 /* Release */ = {-			isa = XCBuildConfiguration;-			buildSettings = {-				ALWAYS_SEARCH_USER_PATHS = NO;-				CLANG_ANALYZER_NONNULL = YES;-				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;-				CLANG_ENABLE_MODULES = YES;-				CLANG_ENABLE_OBJC_ARC = YES;-				CLANG_ENABLE_OBJC_WEAK = YES;-				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;-				CLANG_WARN_BOOL_CONVERSION = YES;-				CLANG_WARN_COMMA = YES;-				CLANG_WARN_CONSTANT_CONVERSION = YES;-				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;-				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;-				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;-				CLANG_WARN_EMPTY_BODY = YES;-				CLANG_WARN_ENUM_CONVERSION = YES;-				CLANG_WARN_INFINITE_RECURSION = YES;-				CLANG_WARN_INT_CONVERSION = YES;-				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;-				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;-				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;-				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;-				CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;-				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;-				CLANG_WARN_STRICT_PROTOTYPES = YES;-				CLANG_WARN_SUSPICIOUS_MOVE = YES;-				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;-				CLANG_WARN_UNREACHABLE_CODE = YES;-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;-				COPY_PHASE_STRIP = NO;-				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";-				ENABLE_NS_ASSERTIONS = NO;-				ENABLE_STRICT_OBJC_MSGSEND = YES;-				ENABLE_USER_SCRIPT_SANDBOXING = YES;-				GCC_C_LANGUAGE_STANDARD = gnu17;-				GCC_NO_COMMON_BLOCKS = YES;-				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;-				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;-				GCC_WARN_UNDECLARED_SELECTOR = YES;-				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;-				GCC_WARN_UNUSED_FUNCTION = YES;-				GCC_WARN_UNUSED_VARIABLE = YES;-				IPHONEOS_DEPLOYMENT_TARGET = 18.0;-				LOCALIZATION_PREFERS_STRING_CATALOGS = YES;-				MTL_ENABLE_DEBUG_INFO = NO;-				MTL_FAST_MATH = YES;-				SDKROOT = iphoneos;-				SWIFT_COMPILATION_MODE = wholemodule;-				VALIDATE_PRODUCT = YES;-			};-			name = Release;-		};-		FF00000000000000000000A0 /* Debug */ = {-			isa = XCBuildConfiguration;-			buildSettings = {-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;-				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;-				CODE_SIGN_IDENTITY = "Apple Development";-				CODE_SIGN_STYLE = Automatic;-				CURRENT_PROJECT_VERSION = 4;-				DEVELOPMENT_ASSET_PATHS = "\"FindFamilyiOS/Preview Content\"";-				DEVELOPMENT_TEAM = M42H545N93;-				ENABLE_PREVIEWS = YES;-				GENERATE_INFOPLIST_FILE = NO;-				INFOPLIST_FILE = FindFamilyiOS/Info.plist;-				INFOPLIST_KEY_CFBundleDisplayName = "Find Family";-				INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.navigation";-				IPHONEOS_DEPLOYMENT_TARGET = 18.0;-				LD_RUNPATH_SEARCH_PATHS = (-					"$(inherited)",-					"@executable_path/Frameworks",-				);-				MARKETING_VERSION = 4.0;-				PRODUCT_BUNDLE_IDENTIFIER = cc.findfamily.app.1;-				PRODUCT_NAME = "Find Family";-				PROVISIONING_PROFILE_SPECIFIER = "";-				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";-				SUPPORTS_MACCATALYST = NO;-				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;-				SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;-				SWIFT_EMIT_LOC_STRINGS = YES;-				SWIFT_VERSION = 5.0;-				TARGETED_DEVICE_FAMILY = 1;-			};-			name = Debug;-		};-		FF00000000000000000000A1 /* Release */ = {-			isa = XCBuildConfiguration;-			buildSettings = {-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;-				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;-				CODE_SIGN_IDENTITY = "Apple Development";-				CODE_SIGN_STYLE = Automatic;-				CURRENT_PROJECT_VERSION = 4;-				DEVELOPMENT_ASSET_PATHS = "\"FindFamilyiOS/Preview Content\"";-				DEVELOPMENT_TEAM = M42H545N93;-				ENABLE_PREVIEWS = YES;-				GENERATE_INFOPLIST_FILE = NO;-				INFOPLIST_FILE = FindFamilyiOS/Info.plist;-				INFOPLIST_KEY_CFBundleDisplayName = "Find Family";-				INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.navigation";-				IPHONEOS_DEPLOYMENT_TARGET = 18.0;-				LD_RUNPATH_SEARCH_PATHS = (-					"$(inherited)",-					"@executable_path/Frameworks",-				);-				MARKETING_VERSION = 4.0;-				PRODUCT_BUNDLE_IDENTIFIER = cc.findfamily.app.1;-				PRODUCT_NAME = "Find Family";-				PROVISIONING_PROFILE_SPECIFIER = "";-				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";-				SUPPORTS_MACCATALYST = NO;-				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;-				SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;-				SWIFT_EMIT_LOC_STRINGS = YES;-				SWIFT_VERSION = 5.0;-				TARGETED_DEVICE_FAMILY = 1;-			};-			name = Release;-		};-/* End XCBuildConfiguration section */--/* Begin XCConfigurationList section */-		FF0000000000000000000050 /* Build configuration list for PBXNativeTarget "FindFamilyiOS" */ = {-			isa = XCConfigurationList;-			buildConfigurations = (-				FF00000000000000000000A0 /* Debug */,-				FF00000000000000000000A1 /* Release */,-			);-			defaultConfigurationIsVisible = 0;-			defaultConfigurationName = Release;-		};-		FF0000000000000000000080 /* Build configuration list for PBXProject "FindFamilyiOS" */ = {-			isa = XCConfigurationList;-			buildConfigurations = (-				FF0000000000000000000090 /* Debug */,-				FF0000000000000000000091 /* Release */,-			);-			defaultConfigurationIsVisible = 0;-			defaultConfigurationName = Release;-		};-/* End XCConfigurationList section */-	};-	rootObject = FF0000000000000000000000 /* Project object */;-}
apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata
diff --git a/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedatadeleted file mode 100644index 919434a625..0000000000--- a/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata+++ /dev/null@@ -1,7 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<Workspace-   version = "1.0">-   <FileRef-      location = "self:">-   </FileRef>-</Workspace>
apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
diff --git a/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettingsdeleted file mode 100644index 18d981003d..0000000000--- a/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings+++ /dev/null@@ -1,8 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">-<plist version="1.0">-<dict>-	<key>IDEDidComputeMac32BitWarning</key>-	<true/>-</dict>-</plist>
apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/xcuserdata/vayun.xcuserdatad/UserInterfaceState.xcuserstate
diff --git a/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/xcuserdata/vayun.xcuserdatad/UserInterfaceState.xcuserstate b/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/xcuserdata/vayun.xcuserdatad/UserInterfaceState.xcuserstatedeleted file mode 100644index ba69cc0192..0000000000Binary files a/apple/FindFamily/FindFamilyiOS.xcodeproj/project.xcworkspace/xcuserdata/vayun.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ
apple/FindFamily/FindFamilyiOS.xcodeproj/xcshareddata/xcschemes/FindFamilyiOS.xcscheme
diff --git a/apple/FindFamily/FindFamilyiOS.xcodeproj/xcshareddata/xcschemes/FindFamilyiOS.xcscheme b/apple/FindFamily/FindFamilyiOS.xcodeproj/xcshareddata/xcschemes/FindFamilyiOS.xcschemedeleted file mode 100644index 439dbead59..0000000000--- a/apple/FindFamily/FindFamilyiOS.xcodeproj/xcshareddata/xcschemes/FindFamilyiOS.xcscheme+++ /dev/null@@ -1,78 +0,0 @@-<?xml version="1.0" encoding="UTF-8"?>-<Scheme-   LastUpgradeVersion = "1600"-   version = "1.3">-   <BuildAction-      parallelizeBuildables = "YES"-      buildImplicitDependencies = "YES">-      <BuildActionEntries>-         <BuildActionEntry-            buildForTesting = "YES"-            buildForRunning = "YES"-            buildForProfiling = "YES"-            buildForArchiving = "YES"-            buildForAnalyzing = "YES">-            <BuildableReference-               BuildableIdentifier = "primary"-               BlueprintIdentifier = "FF0000000000000000000040"-               BuildableName = "Find Family.app"-               BlueprintName = "FindFamilyiOS"-               ReferencedContainer = "container:FindFamilyiOS.xcodeproj">-            </BuildableReference>-         </BuildActionEntry>-      </BuildActionEntries>-   </BuildAction>-   <TestAction-      buildConfiguration = "Debug"-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"-      shouldUseLaunchSchemeArgsEnv = "YES">-      <Testables>-      </Testables>-   </TestAction>-   <LaunchAction-      buildConfiguration = "Debug"-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"-      launchStyle = "0"-      useCustomWorkingDirectory = "NO"-      ignoresPersistentStateOnLaunch = "NO"-      debugDocumentVersioning = "YES"-      debugServiceExtension = "internal"-      allowLocationSimulation = "YES">-      <BuildableProductRunnable-         runnableDebuggingMode = "0">-         <BuildableReference-            BuildableIdentifier = "primary"-            BlueprintIdentifier = "FF0000000000000000000040"-            BuildableName = "Find Family.app"-            BlueprintName = "FindFamilyiOS"-            ReferencedContainer = "container:FindFamilyiOS.xcodeproj">-         </BuildableReference>-      </BuildableProductRunnable>-   </LaunchAction>-   <ProfileAction-      buildConfiguration = "Release"-      shouldUseLaunchSchemeArgsEnv = "YES"-      savedToolIdentifier = ""-      useCustomWorkingDirectory = "NO"-      debugDocumentVersioning = "YES">-      <BuildableProductRunnable-         runnableDebuggingMode = "0">-         <BuildableReference-            BuildableIdentifier = "primary"-            BlueprintIdentifier = "FF0000000000000000000040"-            BuildableName = "Find Family.app"-            BlueprintName = "FindFamilyiOS"-            ReferencedContainer = "container:FindFamilyiOS.xcodeproj">-         </BuildableReference>-      </BuildableProductRunnable>-   </ProfileAction>-   <AnalyzeAction-      buildConfiguration = "Debug">-   </AnalyzeAction>-   <ArchiveAction-      buildConfiguration = "Release"-      revealArchiveInOrganizer = "YES">-   </ArchiveAction>-</Scheme>
apple/FindFamily/FindFamilyiOS/Info.plist
diff --git a/apple/FindFamily/FindFamilyiOS/Info.plist b/apple/FindFamily/FindFamilyiOS/Info.plistindex 823c0e2b87..54fe090600 100644--- a/apple/FindFamily/FindFamilyiOS/Info.plist+++ b/apple/FindFamily/FindFamilyiOS/Info.plist@@ -5,19 +5,11 @@ 	<key>CADisableMinimumFrameDurationOnPhone</key> 	<true/> 	<key>CFBundleDevelopmentRegion</key>-	<string>$(DEVELOPMENT_LANGUAGE)</string>-	<key>CFBundleExecutable</key>-	<string>$(EXECUTABLE_NAME)</string>-	<key>CFBundleIdentifier</key>-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>+	<string>en</string>+	<key>CFBundleDisplayName</key>+	<string>Find Family</string> 	<key>CFBundleInfoDictionaryVersion</key> 	<string>6.0</string>-	<key>CFBundleName</key>-	<string>$(PRODUCT_NAME)</string>-	<key>CFBundlePackageType</key>-	<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>-	<key>CFBundleShortVersionString</key>-	<string>$(MARKETING_VERSION)</string> 	<key>CFBundleURLTypes</key> 	<array> 		<dict>@@ -31,8 +23,8 @@ 			</array> 		</dict> 	</array>-	<key>CFBundleVersion</key>-	<string>$(CURRENT_PROJECT_VERSION)</string>+	<key>LSApplicationCategoryType</key>+	<string>public.app-category.navigation</string> 	<key>LSRequiresIPhoneOS</key> 	<true/> 	<key>NSBluetoothAlwaysUsageDescription</key>
apple/FindFamily/Package.swift
diff --git a/apple/FindFamily/Package.swift b/apple/FindFamily/Package.swiftnew file mode 100644index 0000000000..84ecd02afd--- /dev/null+++ b/apple/FindFamily/Package.swift@@ -0,0 +1,30 @@+// swift-tools-version: 6.0++import PackageDescription++let package = Package(+    name: "FindFamily",+    platforms: [+        .iOS(.v18),+    ],+    products: [+        .library(name: "FindFamily", targets: ["FindFamily"]),+    ],+    targets: [+        .target(+            name: "FindFamily",+            path: "FindFamilyiOS",+            // PQCStubs.c is unreferenced documentation for a future Rust PQC link;+            // SwiftPM cannot mix C into a Swift target.+            exclude: [+                "Info.plist",+                "Assets.xcassets",+                "Preview Content",+                "Crypto/PQCStubs.c",+            ],+            swiftSettings: [+                .swiftLanguageMode(.v5),+            ]+        ),+    ]+)
apple/FindFamily/README.md
diff --git a/apple/FindFamily/README.md b/apple/FindFamily/README.mdindex 49ab103193..c37b3eeedd 100644--- a/apple/FindFamily/README.md+++ b/apple/FindFamily/README.md@@ -1,3 +1,7 @@-This repo exists only to view the source code for FindFamily's iOS app. +# FindFamily for iOS -Issues should be opened here: https://github.com/vayun-mathur/Modern-Apps/issues+Source for the FindFamily iOS app, part of [Modern-Apps](https://github.com/vayun-mathur/Modern-Apps).+Issues: https://github.com/vayun-mathur/Modern-Apps/issues++Build on a Mac with `xcodebuild -scheme FindFamily -destination 'generic/platform=iOS' build`, or anywhere with the+[xtool fork](https://github.com/vayun-mathur/xtool) via `xtool dev build`. See `AGENTS.md` for versioning and release.
apple/FindFamily/Resources/[email protected]
diff --git a/apple/FindFamily/Resources/[email protected] b/apple/FindFamily/Resources/[email protected]new file mode 100644index 0000000000..3dbacfb7b5Binary files /dev/null and b/apple/FindFamily/Resources/[email protected] differ
apple/FindFamily/Resources/Assets.car
diff --git a/apple/FindFamily/Resources/Assets.car b/apple/FindFamily/Resources/Assets.carnew file mode 100644index 0000000000..444d9d24deBinary files /dev/null and b/apple/FindFamily/Resources/Assets.car differ
apple/FindFamily/Resources/Assets.xcassets.sha256
diff --git a/apple/FindFamily/Resources/Assets.xcassets.sha256 b/apple/FindFamily/Resources/Assets.xcassets.sha256new file mode 100644index 0000000000..8b40d1ca8b--- /dev/null+++ b/apple/FindFamily/Resources/Assets.xcassets.sha256@@ -0,0 +1 @@+482f4886fdbfc5044aa2ec8bb5127bd37050009042f96f4ee796193943110a46
apple/FindFamily/Resources/assets-partial-Info.plist
diff --git a/apple/FindFamily/Resources/assets-partial-Info.plist b/apple/FindFamily/Resources/assets-partial-Info.plistnew file mode 100644index 0000000000..a895e793f2--- /dev/null+++ b/apple/FindFamily/Resources/assets-partial-Info.plist@@ -0,0 +1,18 @@+<?xml version="1.0" encoding="UTF-8"?>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">+<plist version="1.0">+<dict>+	<key>CFBundleIcons</key>+	<dict>+		<key>CFBundlePrimaryIcon</key>+		<dict>+			<key>CFBundleIconFiles</key>+			<array>+				<string>AppIcon60x60</string>+			</array>+			<key>CFBundleIconName</key>+			<string>AppIcon</string>+		</dict>+	</dict>+</dict>+</plist>
apple/FindFamily/scripts/assets.sh
diff --git a/apple/FindFamily/scripts/assets.sh b/apple/FindFamily/scripts/assets.shnew file mode 100755index 0000000000..85d6d7b426--- /dev/null+++ b/apple/FindFamily/scripts/assets.sh@@ -0,0 +1,47 @@+#!/usr/bin/env bash+# assets.sh compile   (Mac only) rebuild Resources/Assets.car from FindFamilyiOS/Assets.xcassets+# assets.sh check     (any OS)   fail if Assets.car is stale relative to the .xcassets sources+set -euo pipefail++cd "$(dirname "$0")/.."+SRC=FindFamilyiOS/Assets.xcassets+OUT=Resources+HASH_FILE="$OUT/Assets.xcassets.sha256"++sources_hash() {+    local sha+    if command -v sha256sum >/dev/null; then sha="sha256sum"; else sha="shasum -a 256"; fi+    find "$SRC" -type f ! -name '.DS_Store' -print0 | LC_ALL=C sort -z \+        | xargs -0 $sha | $sha | cut -d' ' -f1+}++case "${1:-}" in+    compile)+        mkdir -p "$OUT"+        rm -f "$OUT/Assets.car" "$OUT/assets-partial-Info.plist"+        xcrun actool "$SRC" \+            --compile "$OUT" \+            --platform iphoneos \+            --minimum-deployment-target 18.0 \+            --target-device iphone \+            --app-icon AppIcon \+            --accent-color AccentColor \+            --output-partial-info-plist "$OUT/assets-partial-Info.plist" \+            --output-format human-readable-text --notices --warnings --errors+        sources_hash > "$HASH_FILE"+        echo "assets: wrote $OUT/Assets.car ($(cat "$HASH_FILE"))"+        ;;+    check)+        expected=$(cat "$HASH_FILE")+        actual=$(sources_hash)+        if [ "$expected" != "$actual" ]; then+            echo "assets: $OUT/Assets.car is stale; run apple/FindFamily/scripts/assets.sh compile on a Mac" >&2+            exit 1+        fi+        echo "assets: up to date"+        ;;+    *)+        echo "usage: $0 compile|check" >&2+        exit 2+        ;;+esac
apple/FindFamily/scripts/stamp-version.sh
diff --git a/apple/FindFamily/scripts/stamp-version.sh b/apple/FindFamily/scripts/stamp-version.shnew file mode 100755index 0000000000..9987744453--- /dev/null+++ b/apple/FindFamily/scripts/stamp-version.sh@@ -0,0 +1,32 @@+#!/usr/bin/env bash+# stamp-version.sh [Info.plist]+# Writes Modern-Apps version.txt into the app's Info.plist (in place):+#   CFBundleVersion            = line 1 (numeric code, e.g. 20261105)+#   CFBundleShortVersionString = line 2 minus leading "v" and trailing letters (v2.6.11b -> 2.6.11),+#                                because Apple only accepts dot-separated integers.+# Run on a throwaway checkout (the release builder clones fresh).+set -euo pipefail++HERE="$(cd "$(dirname "$0")/.." && pwd)"+PLIST="${1:-$HERE/FindFamilyiOS/Info.plist}"+VERSION_FILE="$HERE/../../version.txt"++CODE=$(sed -n '1p' "$VERSION_FILE" | tr -d '[:space:]')+NAME=$(sed -n '2p' "$VERSION_FILE" | tr -d '[:space:]')+SHORT=$(printf '%s' "$NAME" | sed -E 's/^v//; s/[^0-9.]+$//')++[[ "$CODE" =~ ^[0-9]+$ ]] || { echo "stamp-version: bad version code '$CODE'" >&2; exit 1; }+[[ "$SHORT" =~ ^[0-9]+(\.[0-9]+){0,2}$ ]] || { echo "stamp-version: cannot map '$NAME' to an Apple version" >&2; exit 1; }++python3 - "$PLIST" "$SHORT" "$CODE" <<'EOF'+import plistlib, sys+path, short, code = sys.argv[1:]+with open(path, "rb") as f:+    info = plistlib.load(f)+info["CFBundleShortVersionString"] = short+info["CFBundleVersion"] = code+with open(path, "wb") as f:+    plistlib.dump(info, f)+EOF++echo "stamp-version: $SHORT ($CODE) -> $PLIST"
apple/FindFamily/xtool.yml
diff --git a/apple/FindFamily/xtool.yml b/apple/FindFamily/xtool.ymlnew file mode 100644index 0000000000..3a094b2237--- /dev/null+++ b/apple/FindFamily/xtool.yml@@ -0,0 +1,10 @@+version: 1+bundleID: cc.findfamily.app.1+product: FindFamily+infoPath: FindFamilyiOS/Info.plist+# Requires the vayun-mathur/xtool fork. actool does not exist on Linux, so the+# catalog is compiled on a Mac by scripts/assets.sh and committed. The fork copies+# every file in compiledDir into the .app (except *.sha256 and the partial plist)+# and merges assets-partial-Info.plist into Info.plist.+assetCatalog:+  compiledDir: Resources