Use Latest iOS
Join the DZone community and get the full member experience.Join For Free
one of the quiet new features in the newest xcode release is a new basesdk option “use latest ios”. not all ios developers will appreciate this unless they’ve been developing for at least 6 months or so.
the problem apple has solved was an infuriating one. since an xcode project (a target specifically) can only have one base sdk, and since the newest sdk changes every couple months or so, we’re constantly loading up old projects (or sample code) and being met with the dreaded “base sdk not found” message. arggggggggggg!!!!!
so, for example, say you want to run an old project to see how you implemented your camera code or something like that. you load the project, but it was running on ios 4.0. the new xcode only has 4.1. so, no base sdk found! you have to double-click the target (or targets), and change the base sdk to the newest one. in fact, 99% of the time, you *always* want the newest one.
now, as of the newest xcode, you can set the base sdk to “use latest ios” and, in theory, you’ll never have to change it again unless you have a perverse need to keep your app held back to an older sdk — in which case you are hanging on to an older xcode, too.
i say — thank you, apple! one day, you’ll figure out how to include old sdk’s in the newest xcode builds, but in the meantime this does save me some grief!
Published at DZone with permission of John Blanco, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.