yonaskolb / yonaskolb/XcodeGen
How to specify Platforms (`platformFilter`) for dependencies
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description

45B9DBB41F62A04002DAB9DB /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
platformFilter = ios;
target = 94E563A2FD80462D82C4E977 /* watchOS Example */;
targetProxy = DAC46A191E3ACE32B698613E /* PBXContainerItemProxy */;
};
I'm trying to support Mac Catalyst for an iOS app, Xcode shows error:
Building for Mac Catalyst, but the embedded app 'watchOS Example.app' is building for watchOS. You may need to restrict the platforms for which this app should be embedded in the target editor.
So how to specify Platforms (platformFilter) for dependencies? Thanks.
FYI: https://developer.apple.com/documentation/xcode/creating_a_mac_version_of_your_ipad_app#3226802
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named. Start by tracing how XcodeGen represents dependencies and emits PBXTargetDependency entries, using the platformFilter example as the expected Xcode output. Done means dependency platform filters can be specified and the generated project avoids embedding the watchOS app in the Mac Catalyst build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100