CocoaPods / CocoaPods/Xcodeproj

How to find the active scheme of a project/workspace

Open
#917 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
2.4k
Forks
488
PR merge metrics
No merged PRs in 30d

Description

Similar to the problem I've described on [stackoverflow](https://stackoverflow.com/questions/76918735/how-to-detect-active-scheme-of-an-xcode-project-workspace-from-command-line)

There're only somethings like:

```rb
Xcodeproj::Workspace.new_from_xcworkspace("My.xcworkspace").schemes
Xcodeproj::Project.schemes("My.xcodeproj")
```

What I want is: `Xcodeproj::Project.active_scheme("My.xcodeproj")`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the existing Xcodeproj::Workspace.new_from_xcworkspace(...).schemes and Xcodeproj::Project.schemes(...) entry points, then review the linked Stack Overflow question for how Xcode stores the active scheme. Done means defining and exposing Xcodeproj::Project.active_scheme("My.xcodeproj") with behavior that identifies the requested project's active scheme.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.