Skip to content

packer: add the device keys Xcode adds to extension Info.plists - #395

Draft
ChouChiu wants to merge 1 commit into
xtool-org:mainfrom
ChouChiu:extension-info-plist
Draft

ChouChiu wants to merge 1 commit into
xtool-org:mainfrom
ChouChiu:extension-info-plist

Conversation

@ChouChiu

@ChouChiu ChouChiu commented Oct 24, 2026 •

Copy link
Copy Markdown

Related to #117: one of the checks App Store Connect runs on uploads.

What does this PR do?

CFBundleSupportedPlatforms, UIRequiredDeviceCapabilities and UIDeviceFamily were only added to the app's Info.plist. Xcode adds them to extensions too, and App Store Connect rejects an extension without UIRequiredDeviceCapabilities (error 90502). They're now added to every bundle, and a value in the extension's own Info.plist still wins for UIDeviceFamily.

How was it tested?

  • Checked the Info.plist of the Examples/DemoExtensions widget.
  • Verified with MicYou-iOS, which currently writes these keys into its widget's Info.plist by hand for TestFlight. The bundle built by this branch has them without that, and installs and runs on an iPhone.
  • swift test and make lint pass on Linux (Swift 6.4.1, Darwin SDK 27.1). Not tested on macOS, where SwiftPM's native build system and Apple's linker are used.

AI tool usage

How much of this PR was AI-assisted? (check one)

  • 0 - No AI was used to write code
  • 1 - I was assisted by AI. I reviewed the finished result.
  • 2 - I set the AI going and left it to it; nobody has read the result - no review, or AI review only

The code was written by Claude Code. I haven't reviewed it line by line, but I tested the result on a real device as described above, so it's opened as a draft.

🤖 Generated with Claude Code

CFBundleSupportedPlatforms, UIDeviceFamily and UIRequiredDeviceCapabilities
were only added to the app. App Store Connect rejects extensions without
them (e.g. error 90502).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gulian

gulian commented Nov 8, 2026

Copy link
Copy Markdown

A real-world confirmation that this is needed. I uploaded one of my apps to TestFlight from Linux (a widget extension and a notification service extension, built with xtool and the open PRs from #117). The first build was rejected:

ITMS-90502: Invalid Bundle. Your binary, '.Widgets', has a 64-bit architecture slice, so you must include the "arm64" value for the UIRequiredDeviceCapabilities key

once for each extension. With this PR merged on top (cleanly, onto https://github.com/gulian/xtool/tree/testflight-linux), both extensions get UIRequiredDeviceCapabilities = [arm64], UIDeviceFamily and CFBundleSupportedPlatforms, and the next build was accepted and installs from TestFlight.

gulian pushed a commit to gulian/xtool that referenced this pull request Nov 25, 2026

This branch has not been deployed

No deployments
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