yonaskolb / yonaskolb/XcodeGen

Referencing an external application for the run action executable

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

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

image

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.