objective c - is there a compatibility checker at XCode? -


can xcode check code compatibility against specific os x version? or external tool?

i have project that's using function exists @ 10.9 , newer, though set xcode deployment target 10.7, builds without errors when trying run application on 10.8, doesn't work!!

how can functions minimum os version required?

xcode not provide tool check whether method available deployment target. if know method available specific version can check whether method available:

if ([self respondstoselector:@selector(newmethodnotalwaysavailable:withparameters:)]) {     [self newmethodnotalwaysavailable:@"1" withparameters:yes]; } else {     // call other method don't anything. } 

you can ut classes:

if ([somenewclass class] ) {     // class available , can use } 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -