yonaskolb / yonaskolb/XcodeGen

buildPhase: headers not working

Open
#1,063 0 comments 0 reactions 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

Hi:

For some strange reason, when I specify buildPhase: headers, the corresponding buildPhase is not created in the Xcode project. While this does not prevent successful compilation, it's just weird that everything works well except this. Here's my full spec:

name: sndpipe~
options:
  bundleIdPrefix: org.me
targets:
  sndpipe~:
    type: bundle
    platform: macOS
    deploymentTarget: "10.13"
    sources:
      - path: src/sndpipe~.c
        buildPhase: sources
      - path: src/include
        includes: "*.h"
        buildPhase: headers
    dependencies:
      - sdk: CoreFoundation.framework
      - framework: src/lib/libsndfile.a
      - framework: src/lib/libsoundpipe.a
    configFiles:
      Debug: project.xcconfig
      Release: project.xcconfig
    settings:
      CODE_SIGN_IDENTITY: "-"
      DEVELOPMENT_TEAM: ""
      GCC_OPTIMIZATION_LEVEL: 0
      HEADER_SEARCH_PATHS:
        - $(C74SUPPORT)/max-includes
        - $(C74SUPPORT)/msp-includes
        - $(C74SUPPORT)/jit-includes
        - $(PROJECT_HEADERS)
      INFOPLIST_FILE: $(SRCROOT)/../../../Info.plist
      LIBRARY_SEARCH_PATHS: $(PROJECT_LIBS)
      MACOSX_DEPLOYMENT_TARGET: "10.13"
      OTHER_LDFLAGS:
        - $(C74_SYM_LINKER_FLAGS)
        - $(PROJECT_LDFLAGS)
      PRODUCT_BUNDLE_IDENTIFIER: org.me.sndpipe
      PRODUCT_NAME: $(TARGET_NAME)

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

Reproduce the issue using the supplied XcodeGen YAML specification, focusing on the source entry with buildPhase: headers. Trace how that setting is handled during project generation, and consider the issue done when the generated Xcode project contains the expected headers build phase.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift, yaml
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.