Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS CFBundleVersion is created with invalid leading zeroes, which Apple then attempts to strip out. #199

Closed
alanthomson opened this issue Dec 2, 2020 · 4 comments

Comments

@alanthomson
Copy link

When an iOS build is made, the builder automatically creates a CFBundleVersion using the format yyyy.mm.ddhhmm
Apple treats the 3 elements as numbers, and if one of those numbers starts with a zero they are stripping that leading zero.

So they interpret 2020.12.011744 as 2020.12.11744. This then causes builds to fail to update, because a mismatch is detected between then original CFBundleVersion inside the binary and the stripped version on the App Store.

See screenshot for example of how the bundle version using late November dates are correct, but early December is not.
Screenshot 2020-12-02 at 10 55 02

If leading zeroes are removed prior to building, I believe that should resolve this issue.

@Shchvova
Copy link
Contributor

Shchvova commented Dec 2, 2020

Fixing it by prepending lucky 7 before the date.

@alanthomson
Copy link
Author

I think it might need the 7 before the month as well, otherwise element 2 of the CFBundleVersion could have a leading zero in months 01-09 might have the same problem.

@Shchvova
Copy link
Contributor

Shchvova commented Dec 3, 2020

For sure. I have no idea why I thought it would be different for month.

@Zorfware
Copy link

I don't want to test this problem until next year, where the leading digits on both month and day will become single digit again, but I find it a problem that the dataformat is changed and becomes longer. A real fix would be to remove the the leading zeros before building to preserve existing logic and not change dataformat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants