fix: rely on XcodeGen native AppIcon.icon; harden patch fallback

Remove fileTypes icon override and explicit type:file so XcodeGen 2.37+
emits folder.iconcomposer.icon directly. Skip patch when native output is
valid; otherwise run patch v3 with broader PBX discovery and validation.

Fixes persistent 'AppIcon.icon entry has unexpected shape' on Xcode 26.

Co-authored-by: Rocky <hkgood@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-07-03 08:53:28 +00:00
parent 7410627476
commit b3f68151d1
3 changed files with 101 additions and 46 deletions
+2 -6
View File
@@ -6,11 +6,8 @@
name: OSGKeyboard
options:
bundleIdPrefix: com.osgkeyboard
# Xcode 26 Icon Composer bundles must be treated as a single file,
# not expanded into icon.json + SVG children (see XcodeGen #1556).
fileTypes:
icon:
file: true
# XcodeGen 2.37+ emits AppIcon.icon as folder.iconcomposer.icon natively.
# Older XcodeGen releases may need Scripts/patch-icon-composer.sh (fallback).
# Minimum OS: iOS 26. We dropped older iOS support so the
# legacy speech + AVAudioSession branching could be removed in
# favour of iOS 26's `SpeechAnalyzer` (always on-device) and
@@ -58,7 +55,6 @@ targets:
platform: iOS
sources:
- path: OSGKeyboard/AppIcon.icon
type: file
buildPhase: resources
- path: OSGKeyboard
excludes: