-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Comments
Good catch. Could certainly be improved. |
@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. |
A PR improving the instructions would be lovely! |
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! |
#3290 looks good to me; can we merge this? |
I'll make some small edits to that PR and merge. |
Sounds wonderful, thank you! |
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.
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.)
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:
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).
The text was updated successfully, but these errors were encountered: