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

Improve error message when specified scheme is not found #12182

Merged
merged 1 commit into from Mar 27, 2018

Conversation

0xced
Copy link
Contributor

@0xced 0xced commented Mar 27, 2018

Since #12027, schemes are read with Xcodeproj rather than parsed from xcodebuild -list output. Unlike xcodebuild -list, Xcodeproj reads only shared schemes (from project
and also from workspace).

As the specified scheme might exist on the user machine but not be shared, the error message is improved to suggest that the scheme must be shared with a link to Apple's documentation.

Since fastlane#12027, schemes are read with Xcodeproj rather than parsed from `xcodebuild -list` output. Unlike `xcodebuild -list`, Xcodeproj reads only **shared** schemes (from [project](https://github.com/CocoaPods/Xcodeproj/blob/50e70d32d1176d14c57807c8b5adaa6f42ef38ac/lib/xcodeproj/project.rb#L780-L793)
and also from [workspace](https://github.com/CocoaPods/Xcodeproj/blob/50e70d32d1176d14c57807c8b5adaa6f42ef38ac/lib/xcodeproj/workspace.rb#L199-L204)).

As the specified scheme might exist on the user machine but not be shared, the error message is improved to suggest that the scheme must be shared with a link to Apple's documentation.
@getaaron getaaron merged commit dd81995 into fastlane:master Mar 27, 2018
@getaaron
Copy link
Collaborator

Thanks for the PR, @0xced 👍

@0xced 0xced deleted the scheme-not-found-shared branch March 27, 2018 19:14
@fastlane-bot
Copy link

Hey @0xced 👋

Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉
The code change now lives in the master branch, however it wasn't released to RubyGems yet.
We usually ship about once a week, and your PR will be included in the next one.

Please let us know if this change requires an immediate release by adding a comment here 👍
We'll notify you once we shipped a new release with your changes 🚀

@fastlane-bot
Copy link

Congratulations! 🎉 This was released as part of fastlane 2.88.0 🚀

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

Successfully merging this pull request may close these issues.

None yet

4 participants