yonaskolb / XcodeGen

A Swift command line tool for generating your Xcode project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Target type `tool` does not list bundle dependency in Dependencies Build Phase

armcknight opened this issue · comments

It does appear in the Copy Bundle Resources Build Phase, but not in the Dependencies Build Phase. This results in the bundle not appearing at runtime. If I manually add the bundle target to the tool target's Dependencies Build Phase in the Xcode GUI, the tool runs successfully and can find the bundle contents.

relevant spec portion:

targets:
  createYear:
    type: tool
    sources: [createYear]
    platform: macOS
    deploymentTarget: 10.15
    dependencies:
      - bundle: copyYearResources
  createYearResources:
    type: bundle
    sources: [createYearResources]
    platform: macOS
    deploymentTarget: 10.15

result:
image

expected, which works for my tool at runtime:
image

Would this be a good place to look for implementation? Either in this function body, or at a caller of this function?

func processTargetDependency(_ dependency: Dependency, dependencyTarget: Target, embedFileReference: PBXFileElement?, platform: String?) {