Fix Apple Watch app not appearing on iPhone#5397
Merged
Conversation
The watch app was disabled by removing it from the Embed Watch Content build phase and the Runner target dependencies. This caused the watch app to not be built or bundled into the iOS app, so it never appeared in the Watch app on iPhone. Changes: - Re-add omiWatchApp.app to the Embed Watch Content build phase - Add omiWatchApp target dependency to the Runner target - Change buildActionMask from 8 (install only) to 2147483647 (always)
Greptile SummaryThis PR fixes three related Xcode project configuration issues in Key changes:
Confidence Score: 5/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Xcode Build Triggered] --> B{SDK Target?}
B -- "iphonesimulator" --> C[omiWatchApp dependency skipped\nplatformFilter = iphoneos]
B -- "iphoneos" --> D[Build omiWatchApp\nPBXTargetDependency]
D --> E[Build Runner.app]
E --> F{buildActionMask\ncheck}
F -- "was 8 = install only" --> G["❌ Embed Watch Content\nskipped on debug builds"]
F -- "now 2147483647 = all builds" --> H[Run Embed Watch Content phase]
H --> I{platformFilter?}
I -- "iphoneos" --> J["✅ omiWatchApp.app\nembedded into Runner\nat Contents/Watch/"]
I -- "simulator" --> K["⛔ EXCLUDED_SOURCE_FILE_NAMES\nblocks embedding"]
J --> L[Apple Watch app\nvisible on iPhone]
Last reviewed commit: 4bbf591 |
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
omiWatchApp.appback to the Embed Watch Content build phase (was empty)omiWatchAppas a target dependency on the Runner target (was missing, so the watch app was never built)buildActionMaskfrom8(install builds only) to2147483647(all builds) so the embed phase runs during debug buildsTest plan
EXCLUDED_SOURCE_FILE_NAMES)🤖 Generated with Claude Code