yonaskolb / yonaskolb/XcodeGen

Missing package product when adding local package

Open
#1,549 1 comment 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

This was mentioned in a resolved thread. I'm not sure if the described fixed is legit: https://github.com/yonaskolb/XcodeGen/issues/721#issuecomment-2196428321

Here's my project.yml

name: FocussedProject.generated
options:
  buildIndependentTargetsInParallel: true
  createIntermediateGroups: true
  deploymentTarget:
    macOS: '15.2'
  developmentLanguage: en
  generateEmptyDirectories: true
  groupSortPosition: top
  minimizedProjectReferenceProxies: true
  minimumXcodeGenVersion: 2.38.0
  transitivelyLinkDependencies: true
  useBaseInternationalization: true
  xcodeVersion: '16.3'
packages:
  AppFoundation:
    path: ./modules/foundations/AppFoundation
  ConcurrencyFoundation:
    path: ./modules/foundations/ConcurrencyFoundation
  DLS:
    path: ./modules/coreui/DLS
  DependencyFoundation:
    path: ./modules/foundations/DependencyFoundation
  FoundationInterfaces:
    path: ./modules/foundations/FoundationInterfaces
  JSONFoundation:
    path: ./modules/foundations/JSONFoundation
  LoggingServiceInterface:
    path: ./modules/serviceInterfaces/LoggingServiceInterface
  ServerServiceInterface:
    path: ./modules/serviceInterfaces/ServerServiceInterface
  SettingsFeature:
    path: ./modules/features/Settings
  SettingsServiceInterface:
    path: ./modules/serviceInterfaces/SettingsServiceInterface
  ThreadSafe:
    path: ./modules/macros/ThreadSafe
settings:
  base:
    SWIFT_VERSION: '6.0'
targets:
  FocusProject:
    dependencies:
    - package: DLS
      products: DLS
    - package: ServerServiceInterface
      products: ServerServiceInterface
    - package: JSONFoundation
      products: JSONFoundation
    - package: SettingsServiceInterface
      products: SettingsServiceInterface
    - package: SettingsFeature
      products: SettingsFeature
    - package: AppFoundation
      products: AppFoundation
    - package: LoggingServiceInterface
      products: LoggingServiceInterface
    - package: DependencyFoundation
      products: DependencyFoundation
    - package: ThreadSafe
      products: ThreadSafe
    - package: FoundationInterfaces
      products: FoundationInterfaces
    - package: ConcurrencyFoundation
      products: ConcurrencyFoundation
    deploymentTarget: '15.2'
    platform: macOS
    requiresObjCLinking: true
    settings:
      GENERATE_INFOPLIST_FILE: 'YES'
    sources:
    - path: FocusProject/Sources
    type: application

From what I can tell, Xcode shows an alright configuration:

Image Image Image

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 with the supplied project.yml, especially its packages and target dependencies, and compare the generated Xcode project with the linked resolved thread. Reproduce the missing package product configuration and verify that local package products appear correctly in the generated project.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.