Strange error regarding finding CFBundleIcoFile (icons)..

I’m getting this error when trying to submit to App Store:


ERROR: validation failed: Invalid Image Path - No image found at the path referenced under key ‘CFBundleIconFile’: 'Icon.png’Invalid Image Path


I’m using the latest Corona SDK public release.  It’s saying this for all the icon names.  I used this in my build settings:

CFBundleIconFile = “Icon.png”,

            CFBundleIconFiles =

            {

                “Icon.png”, 

                “Icon@2x.png”,

                “Icon@3x.png”,

                “Icon-60.png”,

                “Icon-60@2x.png”,

                “Icon-72.png”, 

                “Icon-72@2x.png”,

                “Icon-76.png”,

                “Icon-76@2x.png”, 

                “Icon-Small.png”, 

                “Icon-Small@2x.png”,

                “Icon-Small@3x.png”,

                “Icon-Small-40.png”,

                “Icon-Small-40@2x.png”,

                “Icon-Small-40@3x.png”,

                “Icon-Small-50.png”, 

                “Icon-Small-50@2x.png”, 

            },


I have all the corresponding file names correctly named, capitalization and all.  I have made several Apps with Corona SDK so I’m quite familiar with the process.  I basically copy what works, plug it in the build settings… change the icons… yada yada yada.

What’s strange is that if I’m just testing on local devices, it works fine - the icons are correctly displayed et all.  But when I try to distribute to app store - it’s not finding these icon files.  I’ve tried opening up the IPA and look at what’s in there… and it’s fine except the icons are missing.  However, in my project - my icons are there, everything is there and named right.

I once changed the directory name but ultimately changed the name back to what I remembered.  Wondering if this caused a directory damage in some way where it wasn’t correctly updating the path files.  I don’t know how this works on the backend.  All I know is everything that is suppose to be there, is… and I’ve made several Apps so the build settings are from what other projects have worked with.

Hmmm… like to submit soon before the XMAS freeze down 

After digging deeper, as it builds and copy resources this is in the terminal… again the files are there, open fine in finder… and are indeed png.

----- 

Dec 06 01:25:07.245 Compressing/copying PNG /Users/**My_Name**/Desktop/FlippyStick/Icon.png to /Users/**My_Name**/Desktop/Flippy Stick.app/Icon.png

Dec 06 01:25:07.293 While reading /Users/**My_Name**/Desktop/FlippyStick/Icon.png pngcrush caught libpng error:

Dec 06 01:25:07.293     Not a PNG file…

Dec 06 01:25:07.294 Could not find file: /Users/**My_Name**/Desktop/Flippy Stick.app/Icon.png

----EDIT

Removing the icons and just re-making them seemed to work… I think I may have done something stupid when initially making the pics, my original was a JPG then I think I just renamed the file to png instead of redoing them by properly converting to png.

THIS IS RESOLVED

That sounds like the cause. You can’t simply rename .jpg to .png and have it work. Glad you solved it.

Rob

After digging deeper, as it builds and copy resources this is in the terminal… again the files are there, open fine in finder… and are indeed png.

----- 

Dec 06 01:25:07.245 Compressing/copying PNG /Users/**My_Name**/Desktop/FlippyStick/Icon.png to /Users/**My_Name**/Desktop/Flippy Stick.app/Icon.png

Dec 06 01:25:07.293 While reading /Users/**My_Name**/Desktop/FlippyStick/Icon.png pngcrush caught libpng error:

Dec 06 01:25:07.293     Not a PNG file…

Dec 06 01:25:07.294 Could not find file: /Users/**My_Name**/Desktop/Flippy Stick.app/Icon.png

----EDIT

Removing the icons and just re-making them seemed to work… I think I may have done something stupid when initially making the pics, my original was a JPG then I think I just renamed the file to png instead of redoing them by properly converting to png.

THIS IS RESOLVED

That sounds like the cause. You can’t simply rename .jpg to .png and have it work. Glad you solved it.

Rob