Repository navigation
Conversation
Starting with Xcode 16, watchOS apps must be embedded in the parent app bundle's PlugIns/ directory (dstSubfolderSpec=13) instead of the legacy Watch/ directory (dstSubfolderSpec=16). Gate the behavior on xcodeVersion so older projects continue to work. Fixes yonaskolb#1613
|
Thanks for digging into this @BigBalli, and for the clear repro in #1613. I've merged the latest master into this branch so CI runs again. One thing has changed since you opened this: master now defaults Could we gate this on the watch target's type instead of A test covering the new path and a CHANGELOG entry under Next Version would be great too. Generated by Claude Code |
Summary
Starting with Xcode 16, watchOS apps must be embedded in the parent app bundle's
PlugIns/directory instead of the legacyWatch/directory. Without this change, installing on device fails with:Changes
In
PBXProjGenerator.swift, the "Embed Watch Content" copy phase now checks the project'sxcodeVersion:dstSubfolderSpec = .plugins(13),dstPath = ""dstSubfolderSpec = .productsDirectory(16),dstPath = "$(CONTENTS_FOLDER_PATH)/Watch"(unchanged)Test plan
14.3, so it continues to use the legacy Watch/ embedding)Fixes #1613