Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to select scheme if ordered differently in XCode #158

Open
kerrgrant opened this issue Mar 1, 2022 · 1 comment
Open

Failed to select scheme if ordered differently in XCode #158

kerrgrant opened this issue Mar 1, 2022 · 1 comment

Comments

@kerrgrant
Copy link

Example session

Grants-MacBook-Pro:GKSwiftStringExtensionUsage grant$ codesigndoc scan xcode
Scan the directory for project files
You can specify the Xcode project/workspace file to scan with the --file flag.
Found one project file: GKSwiftStringExtensionUsage.xcworkspace.

🔦  Scanning Schemes ...
$ xcodebuild "-workspace" "/Users/grant/AIR APPS/GKSwiftStringExtensionUsage/GKSwiftStringExtensionUsage.xcworkspace" "-list"

Select the Scheme you usually use in Xcode
Please select from the list:
[1] : GKSwiftStringExtensionUsage
[2] : GKSwiftStringPod
[3] : Pods-GKSwiftStringExtensionUsage
(type in the option's number, then hit Enter) [1] : 1
could not get scheme (GKSwiftStringExtensionUsage) from path (/Users/grant/AIR APPS/GKSwiftStringExtensionUsage/GKSwiftStringExtensionUsage.xcworkspace): scheme GKSwiftStringExtensionUsage not found in GKSwiftStringExtensionUsage

I was able to get around this issue by rearranging the order of the schemes listed within XCode, i.e.

Going from...
Screenshot 2022-02-28 at 19 18 17

to...

Screenshot 2022-02-28 at 19 18 00

Perhaps the number entered on the CLI assumes the same ordering, i.e. expected '1' to correspond exactly to scheme named: 'GKSwiftStringExtensionUsage'

Maybe not but thought it might be useful as it blocked me straight away.

@stevebrowndotco
Copy link

Wow thanks for this, lifesaver. Confirmed working for me as well when I change the order to the 1st position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants