Skip to content

fix(ios): Preserve signed bundle symlinks when generating IPAs - #761

Merged
jamieQ merged 2 commits into
mainfrom
fix/preserve-ipa-bundle-entries
Nov 25, 2026
Merged

jamieQ merged 2 commits into
mainfrom
fix/preserve-ipa-bundle-entries

Conversation

@jamieQ

@jamieQ jamieQ commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

ZIP extraction materializes a symlink as a regular file containing its target path. When Launchpad copied that file into an IPA, the generated app no longer matched its signed resource seal. The HackerNews fixture demonstrates this with a widget that links to the main app’s fonts bundle.

Stream the selected app’s entries from the uploaded XCArchive directly into Payload/. Copy the Unix file type and permissions, including symlinks and executable bits, and write the IPA with Deflate compression. Size analysis continues to use the extracted tree.

Verified with stored and Zstandard uploads of the signed HackerNews fixture. Both generated apps retained the widget link and the executable’s 0755 mode and passed codesign --verify --strict.

@jamieQ

jamieQ commented Nov 24, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@sentry

sentry Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

📲 Install Builds

iOS

🔗 App Name App ID Version Configuration
HackerNews com.emergetools.hackernews 3.8 (1) Release

Android

🔗 App Name App ID Version Configuration
Hacker News com.emergetools.hackernews 1.0.2 (13) Release

⚙️ launchpad-test-android Build Distribution Settings

@sentry

sentry Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Size Analysis

2 components analyzed

iOS Builds

Name Configuration Version Download Size Install Size
HackerNews (iOS)
com.emergetools.hackernews
Release 3.8 (1) 6.5 MB (0 B) 9.7 MB (0 B)

Android Builds

Name Configuration Version Download Size Uncompressed Size
Hacker News (Android)
com.emergetools.hackernews
Release 1.0.2 (13) 2.9 MB (+7 B) 6.6 MB (0 B)

Configure launchpad-test-ios status check rules

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 988c3b1. Configure here.

@jamieQ
jamieQ marked this pull request as ready for review November 24, 2026 22:11
@jamieQ
jamieQ force-pushed the fix/preserve-ipa-bundle-entries branch from 988c3b1 to 2a0a82b Compare November 25, 2026 12:16
@jamieQ
jamieQ force-pushed the fix/preserve-ipa-bundle-entries branch from 2a0a82b to 9faf018 Compare November 25, 2026 12:42
@NicoHinderling

Copy link
Copy Markdown
Contributor

Instead of extracting, restoring the symlinks, and then validating them, what if generate_ipa just copied the .app entries straight from the original zip into Payload/? The links would come through exactly as they were signed, we'd never write untrusted symlinks to disk, and most of this code could go (we'd just need to force ZIP_DEFLATED in case the source is zstd).

@jamieQ
jamieQ merged commit 7cf9516 into main Nov 25, 2026
27 checks passed
@jamieQ
jamieQ deleted the fix/preserve-ipa-bundle-entries branch November 25, 2026 18:49
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