App is being refused upload.... tried everything!

Hi,
 
I’ve been struggling with this issue for over a day and no matter what I do I cannot get Apple to accept my app via the Application Loader. I keep getting the dreaded iPhone5 compatibility message. I am using the ultimate config file, I have the Default-568h@2x.png in the same folder as the main.lua, I deleted the build files and the temporary cache files. I read the above link and tried to follow it to the letter. This is my entire config.lua based on this post: http://coronalabs.com/blog/2013/09/10/modernizing-the-config-lua/

--calculate the aspect ratio of the device local aspectRatio = display.pixelHeight / display.pixelWidth application = { &nbsp; &nbsp;content = { &nbsp; &nbsp; &nbsp; width = aspectRatio \> 1.5 and 320 or math.ceil( 480 / aspectRatio ), &nbsp; &nbsp; &nbsp; height = aspectRatio \< 1.5 and 480 or math.ceil( 320 \* aspectRatio ), &nbsp; &nbsp; &nbsp; scale = "letterBox", &nbsp; &nbsp; &nbsp; fps = 60, &nbsp; &nbsp; &nbsp;imageSuffix = { &nbsp; &nbsp; &nbsp; ["@2x"] = 1.5, &nbsp; &nbsp; &nbsp; ["@4x"] = 3.0, &nbsp; &nbsp;}, &nbsp; &nbsp;}, }

Here is the error:

 ERROR ITMS-9000: "Your binary is not optimized for iPhone 5 - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image with the -568h size modifier immediately following the &amp;lt;basename&amp;gt; portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at 'https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple\_ref/doc/uid/TP40006556-CH14-SW5' and the 'iOS App Programming Guide' at 'https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple\_ref/doc/uid/TP40007072-CH6-SW12'." &nbsp;

I’ve searched all over the forums and the Internet and nothing has helped. Please advise, I’m at my wit’s end!
 
Thank you!

And I did see this post, but I’m still stuck :frowning:

http://forums.coronalabs.com/topic/49377-ultimate-configlua-and-black-bars-pulling-my-hair/

For completeness, here are my build settings:

settings = { orientation = { default = "portrait", content = "portrait", supported = { "portrait" }, }, iphone = { plist = { UIApplicationExitsOnSuspend = false, UIPrerenderedIcon = true, UIStatusBarHidden = false, UIAppFonts = { "AvenirLTStd-Black.otf","SourceCodePro-Black.ttf" }, CFBundleIconFiles = { "Icon.png", "Icon-@2x.png", "Icon-72.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-120.png", }, UILaunchImageFile = { "Default-568h@2x.png", "Default.png", "Default@2x.png", "Default-Portrait.png", "Default-Portrait@2x.png", }, }, skipPNGCrush = false, }, android = { versionCode = "2", usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.PROCESS\_OUTGOING\_CALLS", "android.permission.READ\_PHONE\_STATE", "android.permission.WRITE\_CALENDAR", }, usesFeatures = { { name="android.hardware.camera.any", required=false }, { name="android.hardware.camera.autofocus", required=false }, { name="android.hardware.location", required=false }, { name="android.hardware.location.gps", required=false }, { name="android.hardware.telephony", required=false }, { name="android.hardware.screen.portrait", required=true }, { name="android.sensor.light", required=false }, } } }

hi Alex- a couple things to check:

Make sure the name of the actual file has a Capital “D”, and lower case everything else including “png”.

Check that you are using the right dash:

Default–568h@2x.png  is the right one.

Default-568h@2x.png  is the wrong one. Subtle difference. 

I banged my head once until I double checked and realized it had a lower case “D”. 

Sorry to say, that was not it. What do I do now? The delivery date is coming and I cannot submit!

I have no idea why it works now, except that I copied and pasted the -568h portion of the Default-568h@2x.png straight out of Apple’s error message and pasted it into the filename and it finally worked! I don’t know why yours did not work for me since I literally copy/pasted your naming. However, I’m pretty sure what you say is the right one is wrong since the name I posted above was copied directly fro the filename into this message. App submitted! (FINALLY)

Thanks!

And I did see this post, but I’m still stuck :frowning:

http://forums.coronalabs.com/topic/49377-ultimate-configlua-and-black-bars-pulling-my-hair/

For completeness, here are my build settings:

settings = { orientation = { default = "portrait", content = "portrait", supported = { "portrait" }, }, iphone = { plist = { UIApplicationExitsOnSuspend = false, UIPrerenderedIcon = true, UIStatusBarHidden = false, UIAppFonts = { "AvenirLTStd-Black.otf","SourceCodePro-Black.ttf" }, CFBundleIconFiles = { "Icon.png", "Icon-@2x.png", "Icon-72.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-120.png", }, UILaunchImageFile = { "Default-568h@2x.png", "Default.png", "Default@2x.png", "Default-Portrait.png", "Default-Portrait@2x.png", }, }, skipPNGCrush = false, }, android = { versionCode = "2", usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.PROCESS\_OUTGOING\_CALLS", "android.permission.READ\_PHONE\_STATE", "android.permission.WRITE\_CALENDAR", }, usesFeatures = { { name="android.hardware.camera.any", required=false }, { name="android.hardware.camera.autofocus", required=false }, { name="android.hardware.location", required=false }, { name="android.hardware.location.gps", required=false }, { name="android.hardware.telephony", required=false }, { name="android.hardware.screen.portrait", required=true }, { name="android.sensor.light", required=false }, } } }

hi Alex- a couple things to check:

Make sure the name of the actual file has a Capital “D”, and lower case everything else including “png”.

Check that you are using the right dash:

Default–568h@2x.png  is the right one.

Default-568h@2x.png  is the wrong one. Subtle difference. 

I banged my head once until I double checked and realized it had a lower case “D”. 

Sorry to say, that was not it. What do I do now? The delivery date is coming and I cannot submit!

I have no idea why it works now, except that I copied and pasted the -568h portion of the Default-568h@2x.png straight out of Apple’s error message and pasted it into the filename and it finally worked! I don’t know why yours did not work for me since I literally copy/pasted your naming. However, I’m pretty sure what you say is the right one is wrong since the name I posted above was copied directly fro the filename into this message. App submitted! (FINALLY)

Thanks!