If I build the Gideros iOS player under Xcode 4.5 and run on an iOS 6 device then I see this in the log:
AudioStreamBasicDescription: 2 ch, 22050 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved
init_memory_pool: 1048576
starting render thread
2012-09-28 10:49:39.607 GiderosiOSPlayer[956:907] Application windows are expected to have a root view controller at the end of application launch
fps: 59.1425
fps: 60.0279 |
Running the same code (built with Xcode 4.5) using an iOS 5 device doesn't produce this error
AudioStreamBasicDescription: 2 ch, 22050 Hz, 'lpcm' (0x00000C2C) 8.24-bit little-endian signed integer, deinterleaved
init_memory_pool: 1048576
starting render thread
fps: 47.7566
fps: 60.0044 |
Perhaps this is the source of the autorotation bug mentioned
here.
I should also point out that any UIViews created in landscape mode (either with Hot Wax or with UIKit) on the 4.5/iOS6 combination are screwed up. Some are rotated to landscape and some are not.
If I run the same tests with XCode 4.3 there is no debug message and the screwy rotation doesn't occur. For the time being I'm happy to stay with XCode 4.3.1 but for a time I did have an issue debugging on an iOS 6 device using this version (i.e. Xcode would complain and not see the device). For anyone else who has this problem, I think the solution is to install XCode 4.5 in parallel so you have both versions in your Applications folder.
best regards
Comments
btw, do you think it is safe to install two Xcodes in parallel?
As I said, I had an issue where XCode 4.3 wouldn't allow me to see an iOS 6 iPad (complaining that it didn't have the right SDK version). I followed some instructions to d/l just the v6 SDK and add it to the XCode package. However, this didn't work and ended up showing me two devices with the same name inside Xcode and I still couldn't connect.
So I renamed XCode to XCode 4.3 and then downloaded and installed 4.5. I fiddled around with the names some more and I now have two copies of XCode, one called "Xcode" and the other "Xcode 4.5". I can now have both XCodes running at once and connect two devices, one iOS5 and one iOS6 and swap between them. Appears to be working fine.
BTW, it's a good idea to keep one of the installations as just plain "XCode" since some third party tools may expect to find it under that name.
best regards
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps