This is not my first hybrid App. Moreover, I've been able to build this app for Android and also for iOS. In fact, I've been already able to send it to Apple Store. The problem is that it was rejected, I've had to review some details, and now I need to change the "bundle versions string, short" and "bundle version" to a higher number in order to submit it again to Apple Store. I've changed config.xml accordingly but PG Build keeps generating the same old bundle with the old version numbering after I build the new code. I've cleared caches, used different browsers, connected from different IPs, and as I said, even user a different account at Phonegap Build.
I'm NOT using Phonegap Desktop App.
My App ID is 1987314.
- 14 Posts
- 0 Reply Likes
- confused
Posted 4 years ago
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
including generating a new app from a new Phonegap Build account!So, the old app is not returned by your old account, only. It is unlikely that the PGB server returns the old (cached) app in multiple accounts.
I've cleared caches, used different browsers, connected from different IPsSo, it's unlikely that the old app is cached somewhere locally.
That leaves only one option: you are uploading the same set of sources by mistake. You may think you're sending a new set with a new config to PGB, but in fact you aren't.
OR
You aren't any more (after you did once) AND you have Hydration switched on (which will cause config changes to be ignored).
- 14 Posts
- 0 Reply Likes
That's a different problem, so I'll ask it elsewhere. Thanks again.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
- 14 Posts
- 0 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Can you confirm that both index.html and config.xml are in the root directory ("/") of your zip file?
- 14 Posts
- 0 Reply Likes
And this is the beginning of my config.xml file:
<?xml version='1.0' encoding='utf-8'?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "xx.xxxxxxx.app"
versionCode = "110"
version = "1.1.0">
<gap:platform name="ios" />
<gap:config-file platform="ios" parent="CFBundleVersion">
<string>1.1.0</string>
</gap:config-file>
<gap:config-file platform="ios" parent="CFBundleShortVersionString">
<array>
<string>1.1.0</string>
</array>
</gap:config-file>
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Also, I seem to recall that the CFBundleShortVersionString should:
- not contain an array
- be a string of digits only (not too sure, but I never add dots myself)
So, I'd suggest:
<config-file platform="ios" parent="CFBundleShortVersionString">
<string>110</string>
</config-file>- 14 Posts
- 0 Reply Likes
I'm really stuck with this. Any other idea of what might be happening? Maybe some syntax error? The XML file seems well formed.
Thank you very much for your support!
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
- 14 Posts
- 0 Reply Likes
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
config.xml misconfigured. Remove all components, then add them in one at a time and rebuild until you find the offending item.
Jesse
- 14 Posts
- 0 Reply Likes
The latest code I've tried is:
<config-file platform="ios" parent="CFBundleVersion" mode="replace">
<string>1.2</string>
</config-file>
<config-file platform="ios" parent="CFBundleShortVersionString" mode="replace">
<string>1.2.0</string>
</config-file>
I've tried
mode="add" and gap:config-file instead of config-file with no result. Also 120 instead of 1.2.0, and <array><string>1.2.0</string></array> instead of <string>1.2.0</string>. Nothing. Info.plist won't reflect any of these changes and it always displays Bundle versions string, short: 1.0 and Bundle version: 1
Any idea? I'm quite desperate up to this point.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Yes. This is one that Petra has more knowledge on this than I do. I do build for iOS, but i have not released anything. In the last message - Petra says "it should be a string of digits only (not too sure, but I never add dots myself)"
I looked into this a bit closer via the Bug Repository at "closed issues" related to CFBundleShortVersionString.
The resolution leads to a comment in issue #213 (which says the fix was applied in Nov/Dec 2013)
An example fix is:
<gap:config-file platform="ios" parent="CFBundleVersion">
<string>517</string>
</gap:config-file>
There are more examples in the last link (above).
Jesse
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
The version attribute in the widget element, along with the bundle version in iTunes should be sufficient to satisfy Apple.
If the config-file entry for CFBundleShortVersionString (or even CFBundleVersion) have no result, something completely different might be causing this, like an info.plist file included in the assets, another config.xml present, or a wrong directory structure.
If you zip file is available online somewhere, please post its url and I'll be happy to have a look.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
- 14 Posts
- 0 Reply Likes
I've tried everything you suggest and many more combinations and I'm still not getting but Build Number (aka CFBundleVersion) = 1. I need that number to be 2.
Petra, my zip file is here: http://fitxers.indret.webfactional.co...
If you could have a look I'd be very grateful.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
the file was not found.
Jesse
- 14 Posts
- 0 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
1. Your zip contains two main directories: _MACOSX and DiaSporas.github
However, PGB requires both config.xml and index.html in the root of your zip, so make sure these directories disappear
2. You include an old cordova.js in your assets. You can't do that.
Remove the file. This is most likely the main cause of the trouble
3. You are missing splashes for the larger displays, like iPhone6(+). You should add them
4. You are using the old names for plugins. At npm, they are named differently (cordova-plugin-xxxx)
Also, you are using a very old version of the splashscreen plugin. Replace by the latest version of cordova-plugin-splashscreen.
For iPad, add cordova-plugin-statusbar
5. You have many 'feature' elements, which are obsolete, now. Read the latest Blog article on that.
These should be removed.
6. You have a config-file entry for CFBundleVersion twice, with different versions. IMHO, you don't need any of them, but at least you should at most have one.
7. You have SplashScreenDelay twice, with different values. That makes little sense.
8. You have a copy.bar file in your assets, which has no business there
9. You have several 'makefile' files in your assets, which shouldn't be there
- 14 Posts
- 0 Reply Likes
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers




