Phonegap - Info.plist in the package must contain the key CFBundleVersion

I followed all the steps to create the .ipa file and set off to download it using Application Loader, but kept getting the following error:

 The Info.plist in the package must contain the CFBundleVersion key. The Info.plist in the package must contain the CFBundleShortVersionString key. 

Here, the Hello World-Info.plist file contains all the information:

 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleDisplayName</key> <string>${PRODUCT_NAME}</string> <key>CFBundleExecutable</key> <string>${EXECUTABLE_NAME}</string> <key>CFBundleIconFile</key> <string>icon.png</string> <key>CFBundleIcons</key> <dict> <key>CFBundlePrimaryIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>icon-40</string> <string>icon-small</string> <string>icon-60</string> <string>icon.png</string> <string> icon@2x </string> <string>icon-72</string> <string> icon-72@2x </string> </array> <key>UIPrerenderedIcon</key> <false/> </dict> </dict> <key>CFBundleIcons~ipad</key> <dict> <key>CFBundlePrimaryIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>icon-small</string> <string>icon-40</string> <string>icon-50</string> <string>icon-76</string> <string>icon-60</string> <string>icon</string> <string> icon@2x </string> <string>icon-72</string> <string> icon-72@2x </string> </array> <key>UIPrerenderedIcon</key> <false/> </dict> </dict> <key>CFBundleIdentifier</key> <string>com.phonegap.helloworld</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>${PRODUCT_NAME}</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>11</string> <key>CFBundleShortVersionString</key> <string>11</string> <key>LSRequiresIPhoneOS</key> <true/> <key>NSMainNibFile</key> <string></string> <key>NSMainNibFile~ipad</key> <string></string> <key>UILaunchImages</key> <array> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{320, 480}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default</string> <key>UILaunchImageOrientation</key> <string>Landscape</string> <key>UILaunchImageSize</key> <string>{320, 480}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-568h</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{320, 568}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-568h</string> <key>UILaunchImageOrientation</key> <string>Landscape</string> <key>UILaunchImageSize</key> <string>{320, 568}</string> </dict> <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-667h</string> <key>UILaunchImageOrientation</key> <string>Landscape</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> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-Landscape-736h</string> <key>UILaunchImageOrientation</key> <string>Landscape</string> <key>UILaunchImageSize</key> <string>{414, 736}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-Portrait</string> <key>UILaunchImageOrientation</key> <string>Portrait</string> <key>UILaunchImageSize</key> <string>{768, 1024}</string> </dict> <dict> <key>UILaunchImageMinimumOSVersion</key> <string>8.0</string> <key>UILaunchImageName</key> <string>Default-Landscape</string> <key>UILaunchImageOrientation</key> <string>Landscape</string> <key>UILaunchImageSize</key> <string>{768, 1024}</string> </dict> </array> </dict> </plist> 

What needs to be fixed / added so that I can download my application ?!

+5
source share
2 answers

It turns out that the www/ directory should have config.xml , which was not the default by default.

In the widget tag, you must specify the following:

 version="1.0.6" ios-CFBundleVersion="201406097" 

where the version number must be changed every time you want to deploy a new update to the application store. I read that you can write a script that takes care of the version, so you do not need to change it manually each time, but have not tried it.

For CFBundleVersion you can check the following answer that explains this. But when deployed, it does not need to be changed.

+2
source

Add after first opening <dict>

 <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1</string> 

Replace 1.0 with the version of the application you want. The funny thing is that they should be generated for you at any time when you change something in TargetName → General → Identity :)

Edit: added image in which these options are displayed

Where to find these settings

+6
source

All Articles