yonaskolb / yonaskolb/XcodeGen

`@loader_path/Frameworks` is missing in `LD_RUNPATH_SEARCH_PATHS` for framework target

Open
#837 2 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

Without @loader_path/Frameworks, a framework can not load libraries it depends.
And the Xcode includes @loader_path/Frameworks when we create a framework.

It seems easy to fix by adding @loader_path/Frameworks to SettingPresets/Products/framework.yml, but I think it may be better to refactor to use BuildSettingsProvider of XcodeProj.

If my thought is correct, I would like to try.🙋‍♂️

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 SettingPresets/Products/framework.yml and inspect XcodeProj's BuildSettingsProvider, which the issue suggests as a possible refactoring point. Confirm the appropriate framework target setting and update the preset or provider so generated frameworks include @loader_path/Frameworks in LD_RUNPATH_SEARCH_PATHS.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.