You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've followed the direction in the README to attach warnings.xconfig to the project:
Then I've done some things to specifically test that some of these errors are thrown:
// empty loop
for _ in 0..<3{}
// shadowed variable
varindex=0func another(){varindex=3}
I can build and run with no problem, however, and the errors aren't shown either as warnings or build blockers. Do I have this configured wrong? I'm probably doing something basic and silly, I'm very new to iOS, just want to start with guard rails.
The text was updated successfully, but these errors were encountered:
These warnings currently only apply to C-based languages, such as Objective-C. AFAIK, there's no way to make them apply to Swift—though I'll leave this open in case I'm wrong, or in case they add them at some point. (And I'll change the title to make clear what I'm using this bug for.)
In the meantime, please file bug reports at https://bugreport.apple.com/ asking for these warnings to be added to Swift.
boredzo
changed the title
Getting xcode to fail hard
Enable warnings for Swift
May 16, 2015
I've followed the direction in the README to attach
warnings.xconfig
to the project:Then I've done some things to specifically test that some of these errors are thrown:
I can build and run with no problem, however, and the errors aren't shown either as warnings or build blockers. Do I have this configured wrong? I'm probably doing something basic and silly, I'm very new to iOS, just want to start with guard rails.
The text was updated successfully, but these errors were encountered: