xCode 4.2, sdk 1.8.0, Invalid Icon Path, Invalid Binary, CFBundleShortVersionString

You must Login before you can answer or comment on any questions.

Using Studio, xCode 4.2, and sdk 1.8.0v2, I had some difficulties with uploading a working app to iTunes due to 'Invalid Icon Path/Invalid Binary' messages and 'This Bundle is invalid. The key CFBundleShortVersionString in the info.plist must contain a higher version than that of the previously upload version.' messages.

I went in circles for several days so thought I would document the solution that worked for me (greatly assisted by the kind Appcelerator folks).

If you get either of these messages, you can, after you have built your app for distribution through Studio, try editing the info.plist file found in your app's Build folder. Choose to open it with xCode after right clicking on the file, then right click in some white space within the file and choose to Show Raw Keys/Values. Add any names of missing icon files under CFBundleIconFiles. Then create all of the following icon files and put them in your Resources folder. Their names and sizes are appicon-72.png 72x72, appicon-Small-50.png 50x50, appicon-Small.png 29x29, appicon-Small@2x.png 58x58, appicon.png 57x57, appicon@2x.png 114x114, and iTunesArtWork 512x512. The iTunesArtWork doesn't display an extension. I'm not sure that I needed to include all of them but due to time constraints decided to just include them all.

You can also try entering the CFBundleShortVersionString and CFBundleVersion numbers to the info.plist under the CFBundleShortVersionString and CFBundleVersion. I used 3.1 for the CFBundlesShortVersionString and 3.0 for CFBundleVersion, but If your app still won't validate as mine wouldn't, I had to open the project in xCode (from the Welcome screen - what a misnomer) and change the bundle versions within the project summary tab page.

It doesn't matter that your iTunes version numbers do not match these xCode bundle version numbers.

I also found that I also had to change the certificate to the distribution certificate within xCode (if you need to, it's under the Build Settings tab). Then from within xCode, I clicked on Product/Build for Archiving and then finally Archive. Then I deleted the prior archive file, logged into iTunes and filled out info to get to the point where iTunes was ready to receive the upload, went back to xCode, validated and then uploaded to iTunes.

If you need my screen shots, I'll try to upload them. Hope this helps.

1 Answer

I was having this problem too with my Itc submissions being rejected for the iTunesArtwork being missing with SDK 1.8.0 v2.

I seem to have resolved this by taking a copy of the info.plist from the build folder and copying it to the root of the application source (not the resource folder), then edit the file and remove the iTunesArtwork entry from the list. Then clean the project and recompile.

I read that the iTunesArtwork shouldn't be in the plist as it's not part of the app and only there for iTunes. By copying the info.plist to the app root this creates an override for the default one that get created.

Hope this helps.

Your Answer

Think you can help? Login to answer this question!