@devries-cameron20 / t3code Mirror · read-only / commits / 39b1ca9088
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 23:15 UTC

fix(mobile): iOS builds no longer fail on Xcode 27.2 (#19037)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

nekohasekai committed Oct 20, 2026 at 12:22 UTC 39b1ca9088b59b28f0633c961fc70c428ccb9cd9
2 files changed +69 -3
patches/expo-sharing@58.0.19.patch
+66
@@ -108,6 +108,72 @@ index 74544e0..92bd2f5 100644
108 };
109 export type BaseResolvedSharePayload = SharePayload & {
110 /**
111 +diff --git a/plugin/build/ios/xcode/addPbxGroup.js b/plugin/build/ios/xcode/addPbxGroup.js
112 +index 0867938bdc6df7aeba560cb84dc9c9156c842d95..6ff5be15de702c79cc932def1af68e4c801db48e 100644
113 +--- a/plugin/build/ios/xcode/addPbxGroup.js
114 ++++ b/plugin/build/ios/xcode/addPbxGroup.js
115 +@@ -29,9 +29,23 @@ function addPbxGroup(xcodeProject, targetName, shareExtensionFiles, platformProj
116 + }).flat();
117 + // Add generated files
118 + targetFiles.push(`${targetName}.entitlements`);
119 +- targetFiles.push(`Info.plist`);
120 + const sharedFiles = Object.values(shareExtensionFiles.sharedFiles ?? []).flat().map((file)=>_path().default.join(sharedFilesPath, file)).map((file)=>_path().default.relative(_path().default.join(platformProjectRoot, targetName, 'shared'), file));
121 +- const { uuid: mainGroupUuid } = xcodeProject.addPbxGroup(targetFiles, targetName, targetName);
122 ++ const { uuid: mainGroupUuid, pbxGroup: mainGroup } = xcodeProject.addPbxGroup(targetFiles, targetName, targetName);
123 ++ // Xcode 27.2 rejects file references shared between groups. Bypass
124 ++ // addPbxGroup's path deduplication so the widget keeps its own Info.plist.
125 ++ const infoPlistReference = xcodeProject.generateUuid();
126 ++ const fileReferences = xcodeProject.pbxFileReferenceSection();
127 ++ fileReferences[infoPlistReference] = {
128 ++ isa: 'PBXFileReference',
129 ++ lastKnownFileType: 'text.plist.xml',
130 ++ path: 'Info.plist',
131 ++ sourceTree: '"<group>"'
132 ++ };
133 ++ fileReferences[`${infoPlistReference}_comment`] = 'Info.plist';
134 ++ mainGroup.children.push({
135 ++ value: infoPlistReference,
136 ++ comment: 'Info.plist'
137 ++ });
138 + const { uuid: sharedGroupUuid } = xcodeProject.addPbxGroup(sharedFiles, 'shared', 'shared');
139 + if (mainGroupUuid && sharedGroupUuid) {
140 + // @ts-expect-error: TODO(@kitten): This used to be untyped, and is failing now
141 +diff --git a/plugin/src/ios/xcode/addPbxGroup.ts b/plugin/src/ios/xcode/addPbxGroup.ts
142 +index 943c263c0cf58be595bfc9745c91827da81befec..3a99a1822beb25fea3835123b9a4ad7ac3b4f8d5 100644
143 +--- a/plugin/src/ios/xcode/addPbxGroup.ts
144 ++++ b/plugin/src/ios/xcode/addPbxGroup.ts
145 +@@ -19,14 +19,29 @@ export function addPbxGroup(
146 +
147 + // Add generated files
148 + targetFiles.push(`${targetName}.entitlements`);
149 +- targetFiles.push(`Info.plist`);
150 +
151 + const sharedFiles = Object.values(shareExtensionFiles.sharedFiles ?? [])
152 + .flat()
153 + .map((file) => path.join(sharedFilesPath, file))
154 + .map((file) => path.relative(path.join(platformProjectRoot, targetName, 'shared'), file));
155 +
156 +- const { uuid: mainGroupUuid } = xcodeProject.addPbxGroup(targetFiles, targetName, targetName);
157 ++ const { uuid: mainGroupUuid, pbxGroup: mainGroup } = xcodeProject.addPbxGroup(
158 ++ targetFiles,
159 ++ targetName,
160 ++ targetName
161 ++ );
162 ++ // Xcode 27.2 rejects file references shared between groups. Bypass
163 ++ // addPbxGroup's path deduplication so the widget keeps its own Info.plist.
164 ++ const infoPlistReference = xcodeProject.generateUuid();
165 ++ const fileReferences = xcodeProject.pbxFileReferenceSection();
166 ++ fileReferences[infoPlistReference] = {
167 ++ isa: 'PBXFileReference',
168 ++ lastKnownFileType: 'text.plist.xml',
169 ++ path: 'Info.plist',
170 ++ sourceTree: '"<group>"',
171 ++ };
172 ++ fileReferences[`${infoPlistReference}_comment`] = 'Info.plist';
173 ++ mainGroup.children.push({ value: infoPlistReference, comment: 'Info.plist' });
174 + const { uuid: sharedGroupUuid } = xcodeProject.addPbxGroup(sharedFiles, 'shared', 'shared');
175 +
176 + if (mainGroupUuid && sharedGroupUuid) {
177 diff --git a/src/Sharing.types.ts b/src/Sharing.types.ts
178 index 18af320..3a52b70 100644
179 --- a/src/Sharing.types.ts
pnpm-lock.yaml
+3 -3
@@ -182,7 +182,7 @@ patchedDependencies:
182 expo-audio@58.0.9: 2c2f8c73a23d48804c8b537b8cd73c25eb331aa47d82eaa481c6766cb81e5add
183 expo-modules-core@58.0.22: f0b0fd100550ed76e5c25b4d13eb7c9ff62825f8f197c53edf7bf447c50c9fb7
184 expo-network@58.0.3: cd09b6d1744dde4efa081b5619ebcff38877d98f7502a51cab121629dece8237
185 - expo-sharing@58.0.19: ad248759641ddd71b8331c09dbb3b18c8a551785f2df507533805babd3c0c124
185 + expo-sharing@58.0.19: 61a9741dc6166fdbb5baa2e489275a65dd21aa11d2c915f490a1b337a4468e76
186 expo-widgets@58.0.20: 8623cb034b720c5ef2da8012c765805a7298909bd92eaf8381f64dbde41b77dd
187 mdast-util-math@3.0.0: afe6b2c89e1eaddfd3c90cf2723f12c9a17d513e65beff51653781486013251c
188 micromark-extension-gfm-table@2.1.1: 9ad23a530e45d9f83cba1da8654fe16d5af8b59d5c73d5c7a7c91fd25b9be1d8
@@ -532,7 +532,7 @@ importers:
532 version: 58.0.4(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7)(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(utf-8-validate@6.0.6))
533 expo-sharing:
534 specifier: 58.0.19
535 - version: 58.0.19(patch_hash=ad248759641ddd71b8331c09dbb3b18c8a551785f2df507533805babd3c0c124)(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7)(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(utf-8-validate@6.0.6))(react@19.3.0)(typescript@7.0.2)
535 + version: 58.0.19(patch_hash=61a9741dc6166fdbb5baa2e489275a65dd21aa11d2c915f490a1b337a4468e76)(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7)(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(utf-8-validate@6.0.6))(react@19.3.0)(typescript@7.0.2)
536 expo-splash-screen:
537 specifier: ~58.0.10
538 version: 58.0.10(expo@58.0.14)(typescript@7.0.2)
@@ -19837,7 +19837,7 @@ snapshots:
19837
19838 expo-server@58.0.5: {}
19839
19840 - expo-sharing@58.0.19(patch_hash=ad248759641ddd71b8331c09dbb3b18c8a551785f2df507533805babd3c0c124)(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7)(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(utf-8-validate@6.0.6))(react@19.3.0)(typescript@7.0.2):
19840 + expo-sharing@58.0.19(patch_hash=61a9741dc6166fdbb5baa2e489275a65dd21aa11d2c915f490a1b337a4468e76)(expo@58.0.14)(react-native@0.88.0(@babel/core@7.29.7)(@react-native/metro-config@0.88.0(@babel/core@7.29.7)(bufferutil@4.1.0)(utf-8-validate@6.0.6))(@types/react@19.3.0)(bufferutil@4.1.0)(react@19.3.0)(utf-8-validate@6.0.6))(react@19.3.0)(typescript@7.0.2):
19841 dependencies:
19842 '@expo/config-plugins': 58.0.9(typescript@7.0.2)
19843 '@expo/config-types': 58.0.3