objective c - Turn Deprecation Warnings Back On -


after creating new target in ios project, there tons of deprecation warnings. i want see these in other targets, too.

i've searched whole project deprecated (as this answer indicate) , i've looked -w (as mentioned here), , found did this:

#pragma clang diagnostic ignored "-warc-performselector-leaks" 

in 1 or 2 places, that's not it. i've looked @ answers regarding suppressing warnings, haven't found shut off.

where else might deprecation warnings been shut off? turn warnings on.

example

this should result in warning:

self.numericlabel.linebreakmode = uilinebreakmodeclip;// nslinebreakbyclipping; 

because comments folded default , missed, elaborating on greg's comment example.

deprecation warnings printed if deployment target newer first deprecation of api.

example 1: using: [twtweetcomposeviewcontroller cansendtweet] deprecation in apple's document:ns_deprecated(na, na, 5_0, 6_0) deployment target: ios 5.0 ios sdk: 6.1 warning: no  example 2: using: [twtweetcomposeviewcontroller cansendtweet] deprecation in apple's document:ns_deprecated(na, na, 5_0, 6_0) deployment target: ios 6.1 ios sdk: 6.1 warning: yes 

in example1, apple's deprecation document states api introduced in ios 5.0 , deprecated in ios 6.0. although ios sdk(xcode) 6.1, not getting warning since deployment target ios 5.0 need api.

in example2, changed deployment target ios 6.1 , warning started appearing.

conclusion: deployment target lowest ios version want app support. if set version that's subsequent deprecation of api, warnings start showing in xcode


Comments

Popular posts from this blog

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -