fix(#1340): run natively on iPad instead of iPhone compatibility mode
The iOS app declared iPhone only (TARGETED_DEVICE_FAMILY = 1), so iPadOS ran it in a phone-sized window. It now declares iPhone and iPad. Info.plist already lists every iPad orientation and the icon set already holds the iPad sizes, so nothing else in the bundle changes. A Mac now runs the iPad version, so the iPhone-on-Mac notice drops its "fixed phone-sized window" claim. CI fails if the built app, or the signed IPA, lacks iPad in UIDeviceFamily, with a negative test on an iPhone-only plist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>pull/1341/head
parent
5ae3fe73a5
commit
67372cb684
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Fails unless the iOS app declares iPad (UIDeviceFamily 2). Without it,
|
||||
# iPadOS runs the app in iPhone compatibility mode (#1340).
|
||||
# Usage: ios-assert-ipad.sh <path to .app>
|
||||
set -u
|
||||
PLIST="$1/Info.plist"
|
||||
i=0
|
||||
while v="$(/usr/libexec/PlistBuddy -c "Print :UIDeviceFamily:${i}" "${PLIST}" 2>/dev/null)"; do
|
||||
if [ "${v}" = "2" ]; then
|
||||
echo "UIDeviceFamily includes iPad (2)."
|
||||
exit 0
|
||||
fi
|
||||
i=$((i + 1))
|
||||
done
|
||||
echo "::error::${PLIST} does not declare iPad in UIDeviceFamily (#1340)."
|
||||
/usr/libexec/PlistBuddy -c "Print :UIDeviceFamily" "${PLIST}" || true
|
||||
exit 1
|
||||
Loading…
Reference in new issue