Updating Version number for resubmission to App Store - ParkinT/RubyMotion_Life GitHub Wiki
You submitted your RubyMotion creation to the App Store (as version 1.0) and now have an update to post.
But, when rebuilding the project - with a new version number and short version number - you get an error similar to this:
The key CFBundleVersion in the Info.plist file must contain a higher version than that of the previously uploaded version.
Laurent provides this guidance as a temporary patch.
In /Library/RubyMotion/lib/motion/project/config.rb
diff --git a/lib/motion/project/config.rb b/lib/motion/project/config.rb
index 94fd493..c3f117f 100644
--- a/lib/motion/project/config.rb
+++ b/lib/motion/project/config.rb
@@ -589,7 +589,7 @@ EOS
'DTPlatformVersion' => '5.1',
'DTXcodeBuild' => '4E1019',
'DTPlatformBuild' => '9B176'
- })
+ }) { |key, oldval, newval| oldval }
Motion::PropertyList.to_s(info_plist)
end
If you use 'CFBundleShortVersionString' instead of short_version
app.info_plist['CFBundleShortVersionString'] = "1.0.1"
You need more settings.
{
'DTSDKName' => 'iphoneos6.0',
'DTPlatformVersion' => '6.0',
'DTXcode' => '0450',
'DTSDKBuild' => '10A403',
'DTXcodeBuild' => '4G182',
'DTPlatformBuild' => '10A403'
}.each do |k, v|
app.info_plist[k] = v
end
You should have no difficulty submitting the App after these steps.