Skip to content

Prepare the app for the Mac App Store - #5

Merged
chiranjeebhub merged 2 commits into
mainfrom
claude/project-thread-ylxhwy
Oct 20, 2026
Merged

chiranjeebhub merged 2 commits into
mainfrom
claude/project-thread-ylxhwy

Conversation

@chiranjeebhub

Copy link
Copy Markdown
Owner

Requested by Chiranjeeb · project thread

What changes

  • App Sandbox. Resources/BucketBrowser.entitlements turns on the sandbox with network.client and files.user-selected.read-write. Every bundle build-app.sh makes is sandboxed (ad-hoc, Developer ID and App Store), so local testing matches the Store copy. Signed builds add the application identifier and the same keychain access group as before (scripts/add-team-entitlements.sh), so iCloud Keychain sync keeps working and the Store and Developer ID copies share accounts.
  • App Store export. scripts/export-developer-id.sh becomes scripts/export-app.sh [developer-id|app-store] (the old name still works). app-store exports a signed build/export/Bucket Browser.pkg through Xcode's cloud-managed certificates; UPLOAD=1 uploads it to App Store Connect instead.
  • Info.plist. Version defaults to 1.0.0 and the build number to the commit count (always increasing). Adds copyright, ITSAppUsesNonExemptEncryption = NO, CFBundleIconName, CFBundleSupportedPlatforms and the DT* toolchain keys App Store Connect checks.
  • Privacy manifest (Resources/PrivacyInfo.xcprivacy): no tracking, no collected data, UserDefaults reason CA92.1. S3Client.uploadFile now reads the file size with resourceValues(.fileSizeKey) instead of attributesOfItem, so no file-timestamp reason is needed.
  • App icon is an asset catalog with all ten Mac sizes (written by render-icon.py), compiled by actool into Assets.car and AppIcon.icns.
  • Privacy policy at docs/privacy.md, usable as the App Store privacy policy URL. README has a new Mac App Store section.

Verified on a Mac (Xcode 27.1, macOS 27.0)

  • swift build, swift test (25 tests, 0 failures).
  • UNIVERSAL=1 scripts/build-app.sh: universal binary, sandbox entitlements, Assets.car, AppIcon.icns, PrivacyInfo.xcprivacy present.
  • export-app.sh developer-id: signed with Developer ID, sandbox + keychain group entitlements. Installed and launched; container created, no sandbox denials in the log.
  • export-app.sh app-store: produced a pkg signed with "3rd Party Mac Developer Installer"; the app inside is signed "Apple Distribution" with the "Mac Team Store Provisioning Profile: com.bucketbrowser.app". Not uploaded.

Generated by Claude Code

Run every bundled build in the App Sandbox with network client and
user-selected file entitlements, add a privacy manifest, compile the
icon from an asset catalog, add the Info.plist keys App Store Connect
checks, and add an app-store method to the export script that produces
a signed installer package or uploads it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSRdQYTSqQKFtbMr7HYDw4
@chiranjeebhub chiranjeebhub self-assigned this Oct 20, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-20T19:51:18.371841Z 14a6bb4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

SwiftPM writes the deployment target (14.0) as the binary's SDK version,
which App Store Connect would read as an outdated SDK.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MSRdQYTSqQKFtbMr7HYDw4

Copy link
Copy Markdown
Owner Author

The screenshots / CI checks fail without producing any logs (the job log returns 404), which matches GitHub Actions being unavailable for this repo right now (likely out of minutes) rather than anything in this diff. I can't re-run them from here. Instead, the branch was built and tested on a Mac with Xcode 27.1: swift build, swift test (25 passing), the universal app bundle, the Developer ID export and the App Store .pkg export all succeed.


Generated by Claude Code

@chiranjeebhub
chiranjeebhub merged commit 758288c into main Oct 20, 2026
0 of 2 checks passed
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