Game Development Reference
In-Depth Information
you read this topic, some or several of these technologies may have advanced to the next
minor or major release version.
I did my best to avoid using any (potentially) version-specific code or features. However,
my abilities to predict future changes are somewhat limited, judging by my failure to win
the lottery thus far.
In my experience from writing three “Learn Cocos2D” editions, these differences are usu-
ally marginal. So don't put the topic away just because there might be, say, Xcode 6.2 or
SpriteBuilder v1.5 available now.
I wish to apologize in advance for any inconveniences caused by updated versions that
slightly alter the way things work, but there's nothing I can do to prevent that. I can,
however, provide you with ways to help you work around such issues.
As far as SpriteBuilder and Cocos2D are concerned, you can visit ht-
tp://www.spritebuilder.com , http://www.cocos2d-swift.org , or
http://www.learn-cocos2d.com to learn of the major changes affecting the topic
with instructions on how to work around the issues or how exactly to change the code to
make it fit the new versions.
Regarding Xcode and iOS, if an Xcode 7 or iOS 9 is available by the time you're reading
this topic, you can always grab Xcode 6 (and thus the iOS 8 SDK) to compile the topic's
code if you want to completely avoid any potential issues.
Specifically for Xcode updates, it's not so much about instructions that will no longer ap-
ply, but additional compiler warnings and errors that Apple continues to introduce with
every new Xcode version. These improvements can seemingly turn once perfectly accept-
able code into a series of “oh no you can't do that anymore, are you insane?!?” statements.
For experienced developers, it's highly welcome that the compiler catches ever more po-
tential issues; however, for developers trying to learn by example with code not tested
with the latest Xcode, it can be a sobering, if not frustrating, experience.
Therefore, if you don't feel up to the task of working around the occasional nitpicking by
updated compiler versions, I recommend using Xcode 6. You can find older Xcode ver-
sions at https://developer.apple.com/downloads/in-
dex.action?name=Xcode%206 . Note that you need to be a registered Apple iOS or
OS X developer in order to access this link.
About Xcode Versions
Search WWH ::




Custom Search