سؤال

I want my Xcode project to have no warnings. How can I configure Xcode such that it won't build as long as there are warnings?

هل كانت مفيدة؟

المحلول

set treat warnings as errors = YES in the build settings

enter image description here

نصائح أخرى

You can add the -Werr switch to the compiler flags (on the Build phases tab, if I recall correctly). This will make the compiler treat all warnings as errors and it will choke on each warning.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top