Xcode shows semantic problem as errors
A simple Xcode warning if there is a type mismatch during assignment:
Incompatible pointer types assigning 'TypeA *' from 'TypeB *'
Is there a way to change this setting to throw an error instead of the typical warning?
Update: I don't want all the belligerent teams to cause build errors. Only warnings that are "semantic problems" like the example above.
+3
source to share
2 answers
You can treat warnings as errors. But this is not selective, if you enable it you will get errors.
Select your project and then a goal. Then select "Build Settings" and look for "Errors". In the "Apple LLVM 6.1 - Warning Policies" section, you should see the "Treat warnings as errors" item. Set to "Yes".
Now this warning will result in an error.
0
source to share