yonaskolb / yonaskolb/XcodeGen

`Link binary with libraries`-build phase

Open
#1,138 3 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

Using xcodegen with a project.yml which does not have any dependencies will create a project which is missing the "link binary with libraries" build phase.

When subsequently adding an SPM dependency manually in Xcode, building will fail (Undefined symbol) because the SPM dependency will not be added to a "link binary with libraries" phase since it is missing.

Is there a way to generate an empty "link binary with libraries" phase using xcodegen?

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 with a project.yml that has no dependencies and inspect the generated Xcode project. Check how build phases are represented and whether the generated project includes an empty “Link Binary With Libraries” phase; done means a manually added SPM dependency can link successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Feature
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.