yonaskolb / yonaskolb/XcodeGen
Referencing an external application for the run action executable
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 8.8k
- Forks
- 908
- Avg merge
- 17d 14h
- Merged PRs (30d)
- 2
Description
Current Behavior
When setting the executable of a run action to an external application (by inserting a path), XCodeGen does not recognize this and the executable of the created project is still set to None.
For instance, I want to create a plugin template for an existing application. For debugging, this application provides a launch argument that loads the plugin, therefore I want to set the executable to the app:
schemes:
ExampleScheme:
run:
executable: /Applications/Example.app

Possible Solution
This https://github.com/tuist/XcodeProj/pull/521 PR added PathRunnable class to LaunchAction to the XcodeProj repo.
Either template generation could distinguish between paths and target names in the executable setting and create a runnable path or a buildable reference, respectively, or another option for adding a path could be added to the run action.
XcodeGen Version: 2.23.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the run action executable handling in XcodeGen and review the referenced XcodeProj PathRunnable change. Verify how path values are distinguished from target names, then confirm that generating the example scheme produces a project whose executable points to the external application.
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
- 42/100