Add project validation for Watch app and App Clip embedding#43
Closed
Add project validation for Watch app and App Clip embedding#43
Conversation
Adds validateProject() function to detect common App Store submission issues before upload: - WATCH_EMBED_MISSING: Missing "Embed Watch Content" build phase - WATCH_EMBED_WRONG_PATH: dstPath not set to $(CONTENTS_FOLDER_PATH)/Watch - WATCH_EMBED_WRONG_SUBFOLDER: dstSubfolderSpec not set to 16 - WATCH_NOT_IN_EMBED: Watch product not included in embed phase - APPCLIP_EMBED_*: Same checks for App Clips This catches the "The bundle is not contained in a correctly named directory. It should be under Watch." error before App Store submission. Also fixes AnyBuildPhase export to use `export type` since it's a type alias. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
validateProject()function to detect common App Store submission issues before uploadAnyBuildPhaseexport to useexport typesince it's a type aliasValidation Checks
WATCH_EMBED_MISSINGWATCH_EMBED_WRONG_PATHdstPathis not$(CONTENTS_FOLDER_PATH)/WatchWATCH_EMBED_WRONG_SUBFOLDERdstSubfolderSpecis not16(Products Directory)WATCH_NOT_IN_EMBEDAPPCLIP_EMBED_*Usage
Test plan
bun test🤖 Generated with Claude Code