commit 4a78d2656014bc528a93205490f6f3c755ce700a
parent ef7f887bb0f7202a9e106d175a7671cf525297be
Author: triesap <tyson@radroots.org>
Date: Sat, 21 Mar 2026 00:27:08 +0000
build: fix ios simulator keychain signing
- add the ios entitlements file with the app keychain access group
- wire the ios target to the entitlements file in base xcconfig
- enable signed simulator builds in the ios host build script
- widen the ios derived data ignore rule to cover local build variants
Diffstat:
4 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -4,7 +4,7 @@
/crates/web/dist/
/native/apple/swift/**/.build/
/native/apple/swift/**/.swiftpm/
-/platforms/ios/.derived-data/
+/platforms/ios/.derived-data*/
/platforms/ios/*.xcodeproj/
# Local environment files
diff --git a/platforms/ios/App/RadRootsIOS.entitlements b/platforms/ios/App/RadRootsIOS.entitlements
@@ -0,0 +1,10 @@
+<?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>keychain-access-groups</key>
+ <array>
+ <string>$(AppIdentifierPrefix)$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ </array>
+</dict>
+</plist>
diff --git a/platforms/ios/Config/Base.xcconfig b/platforms/ios/Config/Base.xcconfig
@@ -2,6 +2,7 @@ PRODUCT_NAME = $(TARGET_NAME)
PRODUCT_MODULE_NAME = RadRootsIOS
GENERATE_INFOPLIST_FILE = NO
IPHONEOS_DEPLOYMENT_TARGET = 17.0
+CODE_SIGN_ENTITLEMENTS = $(SRCROOT)/App/RadRootsIOS.entitlements
SWIFT_OBJC_BRIDGING_HEADER = $(SRCROOT)/App/Bridge/RadRootsIOS-Bridging-Header.h
LIBRARY_SEARCH_PATHS = $(inherited)
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks
diff --git a/scripts/build-ios-host.sh b/scripts/build-ios-host.sh
@@ -50,7 +50,7 @@ host_arch="$(ios_sim_host_arch)"
-destination "generic/platform=iOS Simulator" \
-derivedDataPath "${derived_data_dir}" \
ARCHS="${host_arch}" \
- CODE_SIGNING_ALLOWED=NO \
+ CODE_SIGNING_ALLOWED=YES \
ONLY_ACTIVE_ARCH=YES \
build
)