-
Notifications
You must be signed in to change notification settings - Fork 491
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
Possible build failure on Carthage due to Unneeded Build Dependency #74
Comments
Hey @toshi0383! Thanks a lot for catching this lack of foresight on my part. The main point of running SwiftLint as a script phase is to get the warning/errors from inside the IDE. The issue here is not the script phase, but rather the fact that it was poorly written (apologies for this, I made wrong assumptions). I'm fairly confident that SwiftLint checks can be managed from inside the I will rewrite the script to make it more robust and transparent (i. e. can't make the build fail if |
Hi, I ran into the same issue, I had no |
No it should be this way. - Don't run swiftlint when building by Carthage. I looked over Carthage repo and I didn't know that they have been injecting env variables into xcodebuild command. |
We both agree. I certainly failed to express myself properly, as I only meant that the script was not going away and that I would need to rethink the naive version. That included trying to circumvent the use of I wasn't aware of Thanks a lot for the PR! |
🚀🚢😆 |
Instruction has swiftlint Run Script Phase inside the xcodeproj.
This potentially causes build error on Carthage.
For example,
~/.profile
is missing in my environment, so Run Script Build Phase failed.IMO In general, if you are writing a library(not an app), SwiftLint check should be managed outside of xcodeproj.
The text was updated successfully, but these errors were encountered: