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

Unclear “Xcode scheme”/“Run script phase” Readme Instructions #3169

Closed
2 tasks done
capnslipp opened this issue Apr 4, 2020 · 8 comments
Closed
2 tasks done
Labels
enhancement Ideas for improvements of existing features and rules. good first issue Issue to be taken up by new contributors yet unfamiliar with the project.

Comments

@capnslipp
Copy link

capnslipp commented Apr 4, 2020

New Issue Checklist

Describe the bug

The current README.md's setup instructions instruct the user to ”Integrate SwiftLint into an Xcode scheme to get warnings and errors displayed in the IDE. Just add a new "Run Script Phase" with:”.  I'm not sure what I'm supposed to do here.

The Scheme editor in Xcode doesn't have an option for Run Script Phase, only New Run Script Action.  Also, the instruction don't specify whether this should be a Pre-action or a Post-action.

Screen Shot 2020-04-03 at 8 10 57 PM

Alternatively, the instructions may have meant “Integrate SwiftLint into an Xcode target, in which case the instructions should be updated to reflect that.  (Targets and Schemes are distinctly different concepts in Xcode.)

Screen Shot 2020-04-03 at 8 03 55 PM

I'm going to assume the latter for now and hope it works, simply based on the fact that Target scripts tend to be a more commonplace solution than Phase scripts.  However, I'd like some term-fixing for the sake of clarity in the readme— it should be either:

  1. ”Integrate SwiftLint into an Xcode target to get warnings and errors displayed in the IDE. Just add a new "Run Script Phase" with:”, or
  2. ”Integrate SwiftLint into an Xcode scheme to get warnings and errors displayed in the IDE. Just add a new Build Pre-action "Run Script Action" with:”
Complete output when running SwiftLint, including the stack trace and command used

Not relevant— this is an issue about the Markdown-formatted documentation.

Environment

Not relevant— this is an issue about the Markdown-formatted documentation.  Environment is the website at https://github.com/realm/SwiftLint/ (technically, https://github.com/realm/SwiftLint/blob/master/README.md).

@capnslipp capnslipp changed the title Unclear “Scheme”/“Run script phase” Readme Instructions Unclear “Xcode scheme”/“Run script phase” Readme Instructions Apr 4, 2020
@christiankm
Copy link
Contributor

Good catch. Could certainly be improved.
I'll create a pull request now to correct this.

@capnslipp
Copy link
Author

@christiankm Awesome, thanks!

May I also suggest specifying where in the build phase list the SwiftLint phase should go (e.g. before Compile Source, after Compile Source but before Link Binary, etc.). There have been a number of common Xcode build errors that have cropped up in the past when Apple drops a new Xcode version that are usually solved by having build phases in a sensical order. I imagine you know what order is “most correct” better than I do.

@marcelofabri
Copy link
Collaborator

A PR improving the instructions would be lovely!

@marcelofabri marcelofabri added enhancement Ideas for improvements of existing features and rules. good first issue Issue to be taken up by new contributors yet unfamiliar with the project. labels Aug 4, 2020
@stale
Copy link

stale bot commented Nov 8, 2020

This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!

@stale stale bot added the wontfix Issues that became stale and were auto-closed by a bot. label Nov 8, 2020
@capnslipp
Copy link
Author

#3290 looks good to me; can we merge this?

@stale stale bot removed the wontfix Issues that became stale and were auto-closed by a bot. label Nov 8, 2020
@jpsim
Copy link
Collaborator

jpsim commented Nov 8, 2020

I'll make some small edits to that PR and merge.

@christiankm
Copy link
Contributor

I'll make some small edits to that PR and merge.

Sounds wonderful, thank you!

@jpsim
Copy link
Collaborator

jpsim commented Nov 8, 2020

67165f7

@jpsim jpsim closed this as completed Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Ideas for improvements of existing features and rules. good first issue Issue to be taken up by new contributors yet unfamiliar with the project.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants