Skip to content

iPad only for real; build 4 - #17

Merged
mattonik merged 1 commit into
mainfrom
claude/ipad-only
Oct 2, 2026
Merged

mattonik merged 1 commit into
mainfrom
claude/ipad-only

Conversation

@mattonik

@mattonik mattonik commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Builds 2 and 3 were universal (UIDeviceFamily [1, 2]), so App Store Connect asks for iPhone screenshots and the app would install on iPhones.

Cause: project.yml sets TARGETED_DEVICE_FAMILY: "2" project-wide, but XcodeGen's iOS preset puts "1,2" on the app target, and the target setting wins.

Fix:

  • TARGETED_DEVICE_FAMILY: "2" on the PointerLocker target, with a comment explaining why it's needed there.
  • DeviceFamilyTests checks that the built app declares iPad only. It failed with [1, 2] before the fix.
  • CURRENT_PROJECT_VERSION 4, since builds 2 and 3 are already uploaded.

Testing: tools/test.sh: 100 Swift tests and both JS suites pass. The resolved Release setting is now TARGETED_DEVICE_FAMILY = 2.

After merging, archive and upload build 4 and select it on the 1.0 version. The iPhone screenshot slots then disappear.

🤖 Generated with Claude Code

project.yml set TARGETED_DEVICE_FAMILY "2" project-wide, but XcodeGen's
iOS preset puts "1,2" on the app target, which wins. Builds 2 and 3 were
universal: App Store Connect asked for iPhone screenshots and the app would
install on iPhones. The setting now sits on the target, with a test that the
app declares UIDeviceFamily [2]. Build number 4, since 2 and 3 are uploaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mattonik
mattonik merged commit 32ee7df into main Oct 2, 2026
2 checks passed
@mattonik
mattonik deleted the claude/ipad-only branch October 2, 2026 07:01
mattonik pushed a commit that referenced this pull request Oct 2, 2026
PR #17 made the same fix on main: TARGETED_DEVICE_FAMILY "2" on the app
target, DeviceFamilyTests and build 4. Where the two overlap, main's
version is kept (project.yml, DeviceFamilyTests.swift). What this branch
still adds is "2" on the PointerLockerTests and MouseLockPrototype targets,
which XcodeGen's iOS preset otherwise makes universal too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W5tzx8GXgMz9DMzc5BF4ND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants