iPhone 6 simulator - ipa install error - Xcode 6
Copy link to clipboard
Copied
Been getting the error below when installing an ipa on the Xcode 6 GM seed simulator, released yesterday.
I used -target ipa-test-interpreter-simulator on the command line to build with AIR 15.0 release (iPhoneSimulator8.0.sdk).
It seems related to localized descriptions, tried removing descriptions from the descriptor.xml to no avail.
Any ideas chaps ?
not getting errors with the build process just the install.....
2014-09-10 13:33:42.947 isb[383:507] -[__NSCFString localizedDescription]: unrecognized selector sent to instance 0x1002027b0
2014-09-10 13:33:42.948 isb[383:507] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString localizedDescription]: unrecognized selector sent to instance 0x1002027b0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8532225c __exceptionPreprocess + 172
1 libobjc.A.dylib 0x00007fff8e460e75 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8532512d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00007fff85280272 ___forwarding___ + 1010
4 CoreFoundation 0x00007fff8527fdf8 _CF_forwarding_prep_0 + 120
5 isb 0x00000001000010a5 -[iPhoneSimulator LoadSimulatorFramework:] + 245
6 isb 0x0000000100002fe4 -[iPhoneSimulator runWithArgc:argv:] + 99
7 isb 0x000000010000332b main + 101
8 isb 0x0000000100000f60 start + 52
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/var/folders/5g/hygcyqw956n3zd2nf916b8680000gn/T/cmd1342093461585519839.tmp: line 1: 383 Abort trap: 6 "/AIR15.0/lib/aot/bin/isb/isb" "-install" "-apppath" "/var/folders/5g/hygcyqw956n3zd2nf916b8680000gn/T/fecbcbca-a2bb-475e-9691-5e44908823d5/Payload/my.app" "-sdkpath" "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk"
Copy link to clipboard
Copied
I tested on iPhone 6. these are correct dimensions. Did not have any chance to try on 6+.
Copy link to clipboard
Copied
Hi everybody,
I use Flex SDK 11.0 with the latest AIR 15 from Adobe Labs with XCode 6 and compiled our app for iOS 8 with the new "Default" image sizes.
This is what I get on my iPhone 6 Plus:
iPhone 5 format:
Default image included: Default-568h@2x~iphone.png (size: 640x1136 pixels)
stage.stageWidth: 640
stage.stageHeight: 960
Capabilities.screenResolutionX: 640
Capabilities.screenResolutionY: 1136
Capabilities.screenDPI: 326
iPhone 6 format:
Default image included: Default-375w-667h@2x.png (size: 750x1334 pixels)
stage.stageWidth: 640
stage.stageHeight: 960
Capabilities.screenResolutionX: 828
Capabilities.screenResolutionY: 1472
Capabilities.screenDPI: 326
iPhone 6 Plus format:
Default image included: Default-414w-736h@3x.png (size: 1242x2208 pixels)
stage.stageWidth: 640
stage.stageHeight: 960
Capabilities.screenResolutionX: 828
Capabilities.screenResolutionY: 1472
Capabilities.screenDPI: 326
As you can see, screenDPI is always 326 and stage size always 640 x 960. Any ideas how to we activate full pixel support for stage?
Copy link to clipboard
Copied
The stage size will be the size of the stage as created in Flash. If you're using noscale then there will be a resize event that you can listen for, to find out what size the stage has changed to. That should match the device screen size.
Copy link to clipboard
Copied
Hi Colin, thanks for pointing that out. Of course the app got it's resize and i should have checked stage.fullScreenWidth and stage.fullScreenHeight which contain the same values as Capabilities.screenResolutionX and Capabilities.screenResolutionY.
So the stage on my iPhone 6 Plus has always the size of 828x1472 Pixels and a screenDPI of 326. It makes no difference if I provide a Default-414w-736h@3x.png. It only has 2x mode right now (which looks fine for now).
Is the AIR Team already working on "Metal" support for 1920*1080?
And will we get the @3x resolution 1242x2208 sooner?
Copy link to clipboard
Copied
For those are having problems with iPhone6 plus making a scale of the content, you have to put new launch image sizes 750 x 1334 and 1242 x 2208 for portrait.
I always used just putting default launch images on the main src folder as: Defaul-Portrait.png etc .. but for some reason for these new iPhone6 images it's not working. I put as Defaul-Portrait@3x.png and Default-736@3x.png and not worked. So I had to specify in the descriptor in iPhone tag and it worked:
<key>UILaunchImages</key>
<array>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-667h</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{375, 667}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-736h</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{414, 736}</string>
</dict>
</array>
The problem is that iphone5 images stopped to work, probably because now I have to specify all the images in the descriptor. Anyone knows why is not working just pasting the images in the main src folder? I'm using wrong name?
Adobe + updates = hard time
Copy link to clipboard
Copied
I have the new launch image sizes and default names to use.
iPhone 4/4S: Default@2x.png - 640x960
iPhone 5: Default-568h@2x.png - 640x1136
iPhone 6: Default-375w-667h@2x.png - 750x1334
iPhone 6 Plus: Default-414w-736h@3x.png - 1242x2208
I've tested those in the simulator and they seem to work
Copy link to clipboard
Copied
Did you just copy the files ?
For some reason now stopped to do scale but seems to be getting wrong file in initialization. I've put another file to test with another color and it don't get it.
What about the resolution, what are you getting in iPhone6 plus simulator?
Thanks
Copy link to clipboard
Copied
I'm getting full size for everything. Works fine in all 4 device simulators. No letterboxing, images show up, etc. I'm not using any XML config, either. Just those images in my src/root directory
Copy link to clipboard
Copied
If you don't include the new splash screen sizes, do the iPhone 6/6+ then show letter boxing?
Copy link to clipboard
Copied
Yes, I get letterboxing on iPhone 5, 6, and 6 Plus
Copy link to clipboard
Copied
I didn't mean if you remove all screens. Suppose you include the Default-568h@2x.png do you then not get letter boxing on iPhone 5, but do get it on the other two?
Copy link to clipboard
Copied
Looks like:
- Include Default-568h@2x.png but not Default-375w-667h@2x.png or Default-414w-736h@3x.png , it upscales (and noticeably so)
- Include Default-375w-667h@2x.png and Default-414w-736h@3x.png but not Default-568h@2x.png, it doesn't letter box and doesn't upscale
- Do not include any launch images, I get letterboxing
I only tested using the iPhone 6 simulator since I didn't feel like restarting Flash Builder a bunch of times to test, but I assume the same will apply to the Plus since it is the same aspect ratio as the iPhone 5 and iPhone 6
Copy link to clipboard
Copied
Just to make sure I understood the first part, with just 568h you don't get letter boxing on any device, but you would notice scaling artifacts on iPhone 6? If that the case it's ok for now then, our clients can get around to doing the other sizes and resubmitting at their leisure.
Copy link to clipboard
Copied
Yes. If you include the 568h image, but not the others, it simply scaled your app up as if it were an iPhone 5 app. It's a little fuzzy, especially around text, but still entirely usable. Old apps should be fine so long as they targeted the iPhone 5 (so anything with an update since last October, I believe, when Apple started mandating the iPhone 5 launch image)
Copy link to clipboard
Copied
in iPhone 6 I'm getting right size (750x1334), but in IPhone 6 plus I'm getting:
Capabilities.screenResolutionY=1472
Capabilities.screenResolutionX=828
Flex.applicationDPI=320
Is this happening to you?
The launch image now is getting right, I can see it when I open the app.
Copy link to clipboard
Copied
i get the same problem with AIR 15.0.0274 using the correct launch image .... however native apps get FULL resolution ..
we need another update for AIR 15.0 pronto...

-
- 1
- 2