Friday, 27 September 2013

Apple Stores should provide this extra service to all developers

One of the problem I have with iOS development is, I can't afford to have all different kind of iOS devices - iPhone, iPad, iPad Mini, iPod, ....etc for testing

For example, for iPad, I only have an old iPad 2. Because my child dropped it a while back and although it's been repaired, I test my game found that it only plays background music but wouldn't play the sound effect. Since it works perfectly while running on my iPod 4th gen, iPhone 3GS and iPhone 5, I always thought it's due to the damaged hardware and didn't pay too much attention to it. Until I borrowed an iPad 3 from friend the other day and tested my games again. Damn, still only background music and no sound effect! I then realised there's indeed a bug somewhere in my game!

So who would you ask for help when there's problem getting different kind of iOS devices? The Apple stores of course! I made an appointment with the city Apple store through the net for the coming Monday and thought it's a really good idea. A few days before that, I happened to walk pass another Apple store in one of the shopping centres, so I thought, since I am here, may be have a quick chat with the guys in there. Surprisingly, the answer is NO! I am welcomed to play around with all the iOS devices on display in the shop, but I am not allowed to install any app in there and they do not provide this kind of service for developers. WTF!

Since there's so many iOS devices in every Apple stores and so many "experts" around, surely it wouldn't be too difficult to have one of each model specially reserved for developers to test their app, right? Once done, just erase everything, how difficult can that be??!! Not happy, Apple, not very happy...

Banana for iPhone 5

This is from cirethesquire who found this in got to be kidding me, who would want to carry an iPhone with a banana case? Would be fun if using it on the stage or in some comedy show...

Sunday, 22 September 2013

Upgraded to XCode 5

After paid extra $$$ and a long wait, finally downloaded OS X 10.8.4 and got it installed. Have to admit the process was quite smooth.

After the installation, the first boot up/logon was quite slow - probably due to system searching through the disk for all sorts of stuffs. After that, and another few more updates, here you go - OS X 10.8.5.

Luckily only VMWare Fusion is having incompatibility issue - I rarely use that any way, so no big deal.

Now the icon shows a white icon on top at the Dock.

Finally have the chance to install the main character - XCode 5, again the process was quite smooth.

After Xcode 5 installed, the first thing I noticed, is the extra "iPhone Retina (4-inch 64-bit)" option for iOS Simulator.

Tested my games in the 64-bit simulator and was quite happy that they all worked. Might need to wait until I can get hold of an iPhone 5s to see how it actually works.

A few minor issues though, strangely for both games, at the top of screen it always show the carrier, time and battery status in the 64 bit simulator - but when deployed to my iPhone 5, they don't display. Has the command to hide the status bar changed?

Also for "Where is it", the new iOS7 Game Center pops up in the simulator as expected, but it's in Portrait mode even though the game is in Landscape.

It also complaints and listed quite a few warnings for Cocos2D, wonder how is this going to be resolved...

Also noticed as shown below, the app seems to be expecting quite a few extra icons in various extra different sizes, and for iPad Launch Images, even though the dimensions are the same, it's expecting 4 more new images too. As my games are already close to the 50MB size threshold, adding these extra images would surely cross the line - which means any future updates can't be deployed directly and has to be done through Wi-Fi, this would be a pain...

Can't start developing on iOS 7 yet!

Was trying to deploy my game to an iOS 7 iPad and found XCode 4.6 keep saying the device is locked. I then realised I haven't upgrade to the latest Xcode 5 yet.

Quickly have a look at XCode 5 in App Store, tried to install and it failed! Damn! I need to upgrade to OS X 10.8.4 above first! 

Friday, 13 September 2013

Game Center Leaderboard title issue in portrait mode

Since the introduction of Game Center, Apple has indeed make our life easier with the Leaderboard and many other functions.

However I found the design of the title in portrait mode a bit annoying. As shown below, you basically only have about 12 characters to play with and can't even adjust the font size. Or may be they can make the 2 buttons slightly smaller or something like that?

Hope iOS 7 fixes this problem...

Friday, 6 September 2013

Multiple Problem with Cocos2D v1 [Fixed]

While busy for the 3rd game, tried to update Nextpeer/Flurry frameworks for my 2 existing games. Mespfi works perfectly, uploaded to App Store, and just waiting for approval. But Where is it - smart kids edition is giving me lots of trouble.

First of all is this annoying warning messages. According to info from stackoverflow, this could be due to duplicate files in the "Build Phases => Copy Bundle resources" area. But if you look at those 4 files, they are the localised file therefore they are mean to have the same file name, what the... Any way will just ignore it.

Also tried to lift the "deployment target" from iOS 4.3 to 5.0, but then it starts complaining about Cocos2D 1.0 uses some deprecated functions as shown below.

I ignored it and proceed with upload to App Store, and it was rejected as below...

I checked Cocos2d iPhone download site, it's still the same version 1.01 as what I was using. So i tried change back to iOS 4.3 deployment target, still get rejected by Apple with the same error... Looks like I am stuck? Have to upgrade to Cocos2d V2 ??!!

Following information from this page on stackoverflow, I replaced the 2 lines using "uniqueIdentifier" to "IdentifierForVendor"and that seems to have fixed the problem.

The 2 places I fixed: