yonaskolb/XcodeGen

[BUG] Optional source path doesn't work if executing xcodegen from outer directory

開放

#1,453 建立於 2024年2月22日

 (0 則留言) (0 個反應) (0 位負責人)Swift (895 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (8,714 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Given a project config:

name: OptionalSourcePath

targets:
  OptionalSourcePath:
    type: application
    platform: iOS
    deploymentTarget: "16.0"
    sources:
      - path: "First"
      - path: "Second"
        optional: true

and a directory structure of:

❯ tree dir
dir
├── First
├── Second
└── project.yml

3 directories, 1 file

calling xcodegen from within dir:

cd dir
xcodegen -s project.yml

generates a correct Xcode project.

However, calling xcodegen from outside of dir:

❯ basename $PWD
Downloads
❯ ls dir
First  project.yml  Second
❯ xcodegen -s dir/project.yml

Generates an Xcode project where the "Second" dir is missing from file tree: missing

❯ xcodegen --version
Version: 2.39.1

貢獻者指南