yonaskolb / yonaskolb/XcodeGen

Generation Failing With `zsh: trace trap xcodegen`

Open
#1,326 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
8.8k
Forks
908
Avg merge
17d 14h
Merged PRs (30d)
2

Description

I'm trying to have my project build multiple schemes which all use different configurations whose values are stored in .xcconfig files. I have some luck with using configVariants within my target but it appears to require creating both release and debug variations for each build configuration file. Essentially I'm trying to replicate an existing project and it only has separate schemes with their own configuration files.

I looked into the top-level schemes object and have the following below however when I run xcodegen in the terminal, I'm receiving zsh: trace trap xcodegen. I don't get any validation errors on the project.yml file itself, just this error. Can anyone possibly let me know if this is a bug or where I'm going wrong with my setup?

Thanks

name: MyApp

configs:
  Staging: debug

configFiles:
  Staging: MyApp-Staging.xcconfig

schemes:
  MyAppStaging:
    build:
      targets:
        MyApp: all
    run:
      configFile: Staging

targets:
  MyApp:
    type: application
    platform: iOS
    sources:
      - path: App

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the trace trap with the shown project.yml, MyApp-Staging.xcconfig, Staging configuration, and MyAppStaging scheme using xcodegen. Compare the configuration and scheme definitions with the expected XcodeGen format; done means the project generates successfully without the trace trap and preserves the requested scheme configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift, yaml
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.