ios - Should sdk = deployment target? -


and happen if it's not case.

this may seem easy question.

say base sdk 5. why can't run on ios 7? what? ios 7 can't run stuff built base sdk 5?

so true base sdk must bigger or equal deployment target? if why?

what plus , minus if 2 numbers different?

i looking answers answer: 1. bad things happen if sdk > deployment target 2. bad things happen if deployment target < sdk

from apple

choose deployment target. identifies earliest os version on software can run. default, xcode sets version of os corresponding base sdk version , later.

and

choose base sdk. your software can use features available in os versions , including 1 corresponding base sdk. default , xcode sets newest os supported xcode.

your xcode have base sdk option of whichever latest ios version knows (6.1 xcode 4.5, 7 xcode 5). lets use newest features.

say base sdk 5. why can't run on ios 7? what? ios 7 can't run stuff built base sdk 5?

nonsense, can run on ios7. , run on ios8 when comes out. can't use features didn't exist yet.

so true base sdk must bigger or equal deployment target? if why?

xcode let me set base < deployment, don't see why you'd want that, or if run.

what plus , minus if 2 numbers different?

advantage: can run app on older devices.
disadvantage: have make sure call apis exist on current version. meaning, if use ios6-only features, have detect you're running on ios5 , not use them.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -