Thu, 11 Nov 2021 08:21:19 GMT
Join the conversation at slack.cordova.io
Wed, 10 Nov 2021 20:13:21 GMT
@theus2719 says
I tried to move in all ways in android studio and reinstall but it didn't work, I don't know what else to do...
Wed, 10 Nov 2021 20:32:04 GMT
@theus2719 says
I also ran “yes | sdkmanager -- licenses” and still says I didn't accept the license contracts
Wed, 10 Nov 2021 22:43:38 GMT
@appleoxxo says
Hi everyone, have you ever run into this error after upgrading from cordova 8 to cordova 10?
> A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable > Failed to generate v1 signature``` If I use new generate key by `keytool` it will build successfully but not able to upload to play store..... more details here <https://stackoverflow.com/questions/69911745/how-can-i-use-the-current-keystore-to-build-successfully-or-migrate-to-new-k>
Wed, 10 Nov 2021 15:31:09 GMT
@daviesd says
Did anything change from cordova-ios 6.1.1 -> 6.2.0 that would be affecting my bundle version? When I submit with transporter, my previous build with cordova-ios@6.1.1 had it set properly. Now it's getting set to (4) instead of (3.1.2.2).
Wed, 10 Nov 2021 15:35:23 GMT
@daviesd says
My info.plist file shows Bundle Version: 4 My config.xml shows
<widget android-versionCode="3010202" id="org.oclc.digby" ios-CFBundleVersion="3.1.2.2" version="3.1.2" xmlns="<http://www.w3.org/ns/widgets>" xmlns:android="<http://schemas.android.com/apk/res/android>">
Wed, 10 Nov 2021 15:35:39 GMT
@norman137 says
bundle version should be set via your
config.xml
file<widget>
tag, unless if you explicitly changed it in xcode.
Wed, 10 Nov 2021 15:41:15 GMT
@daviesd says
right. it looks correct in config.xml. but the resultant binary (show contents --- navigate to info.plist) shows Bundle version: 4
Wed, 10 Nov 2021 15:43:57 GMT
@dpogue says
I think that must have been manually changed... even if Cordova weren't finding your customization properly, it would default to matching the version 3.1.2
Wed, 10 Nov 2021 15:44:34 GMT
@daviesd says
i haven't even opened xcode on this project
Wed, 10 Nov 2021 15:47:54 GMT
@daviesd says
i'm gonna rollback to cordova-ios@6.1.1 and see if it fixes it
Wed, 10 Nov 2021 16:45:23 GMT
@daviesd says
hmmmm... ok, same issue with 6.1.1... now... so it's probably something I did in the last week to my build process... ugh
Wed, 10 Nov 2021 16:48:49 GMT
@lz1ncs says
if you do the archive via xcode, you will see a new option that authorizes this change in the bundle version, by default it is true
Wed, 10 Nov 2021 17:22:03 GMT
@dpogue says
wow... Thanks Apple 🙄
Wed, 10 Nov 2021 17:57:43 GMT
@daviesd says
wait.... what? so you say xcode is changing it on me, even though i'm using command line and never doing the archive via xcode?
Wed, 10 Nov 2021 18:05:48 GMT
@lz1ncs says
you got me wrong,
I said there is a new option in archive in xcode that authorizes this change in bundle version, and that by default in xcode it is true
if you use command line and don't want it to change the bundle version, you should look for this new option and send false in your command.
Wed, 10 Nov 2021 18:11:41 GMT
@daviesd says
ugh... but it‘s probably cordova doing this... i don’t think i do...
Wed, 10 Nov 2021 18:12:13 GMT
@daviesd says
(cordova issues the xcode build)
Wed, 10 Nov 2021 18:13:07 GMT
@lz1ncs says
Yes, probably,
I saw this new option in the last xcode update
Wed, 10 Nov 2021 18:14:31 GMT
@dpogue says
This is new in Xcode 13?
Wed, 10 Nov 2021 18:17:45 GMT
@lz1ncs says
yes
Wed, 10 Nov 2021 18:35:40 GMT
@daviesd says
where is this archive flag in the ui?
Wed, 10 Nov 2021 18:41:03 GMT
@daviesd says
because when I archive via xcode ui I get the 3.1.2.2 bundle version correctly. confused. sigh
Wed, 10 Nov 2021 18:56:29 GMT
@daviesd says
it seems very random from command line. sometimes I end up with the right value in info.plist and other times not
Wed, 10 Nov 2021 19:13:43 GMT
@lz1ncs says
after archive process, xcode show archives history.
Wed, 10 Nov 2021 19:14:25 GMT
@lz1ncs says
i'm use xcode 13
Wed, 10 Nov 2021 19:15:39 GMT
@norman137 says
Sounds like it does it because it doesn't like x.y.z.w versioning scheme
Wed, 10 Nov 2021 19:15:57 GMT
@daviesd says
damn
Wed, 10 Nov 2021 19:17:00 GMT
@daviesd says
that's gonna break the way I do some things... hmph
Wed, 10 Nov 2021 19:18:30 GMT
@lz1ncs says
this is probably optional, you can continue to use x.y.z.w versioning scheme
however, it is not recommended.
Wed, 10 Nov 2021 19:19:57 GMT
@daviesd says
ya. we never use xcode ui or archive to build our binary. it's all command line and the file ends up in a directory that I push with Transporter. So this is gonna break that non-human interaction flow.
Wed, 10 Nov 2021 19:20:26 GMT
@daviesd says
thanks for finding this. I guess it's something cordova is probably gonna want to consider adding a flag for at some point
Wed, 10 Nov 2021 19:22:23 GMT
@lz1ncs says
it is possible to send additional flags in build.json of your cordova project
Wed, 10 Nov 2021 19:22:47 GMT
@daviesd says
oh ya... i am using build.json already... let me see if I can do that
Wed, 10 Nov 2021 19:22:50 GMT
@lz1ncs says
https://cordova.apache.org/docs/en/10.x/guide/platforms/ios/#using-buildjson
Wed, 10 Nov 2021 19:35:57 GMT
@daviesd says
ya... even if I do this
<widget android-versionCode="3010202" id="org.oclc.digby" ios-CFBundleVersion="2" version="3.1.2" xmlns="<http://www.w3.org/ns/widgets>" xmlns:android="<http://schemas.android.com/apk/res/android>">
it wants to overwrite it. I wonder where the 4 comes from?
Wed, 10 Nov 2021 19:47:49 GMT
@daviesd says
I even put a 2
Wed, 10 Nov 2021 19:48:04 GMT
@daviesd says
And it still complained and wanted to put 4
Wed, 10 Nov 2021 19:48:51 GMT
@daviesd says
I bet it‘s picking 4 because that’s the next whole after the previous 3.1.2.2 one. ah
Wed, 10 Nov 2021 19:53:11 GMT
@daviesd says
yep, if I put 5, it chooses 5. ok. so I guess the right thing to do is rework my build to just use the buildnum (1,2,3,4,5) as the bundleversion
Thu, 11 Nov 2021 04:30:36 GMT
@daviesd says
@lz1ncs I'm going back and looking at making this work with manageAppVersionAndBuildNumber. I see that by default the ExportOptions.plist file that is under platforms/ios/build/device has
<true/>``` Not sure how to set this to false. I tried adding it to buildFlags in build.json, but it didn't seem to work. Ideas?
Wed, 10 Nov 2021 20:06:12 GMT
@mathewp.94 says
Better late than never
https://www.mathew-paul.nz/posts/cordova-android-adaptive-icons/