Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Skoti opened this issue Feb 22, 2024 · 0 comments

Comments

@Skoti
Copy link

Skoti commented Feb 22, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants