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

Build number is not immediately used after being generated #22

Open
ZevEisenberg opened this issue Oct 2, 2021 · 0 comments
Open

Build number is not immediately used after being generated #22

ZevEisenberg opened this issue Oct 2, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ZevEisenberg
Copy link
Owner

ZevEisenberg commented Oct 2, 2021

On build, the build number is generated by a script. However, the previous contents of BuildNumber.xcconfig are used for that build, and the new values are not used until the next build. This is mitigated (but not fixed) by 1fa8149.

You can see this by doing the following:

  1. Open BuildNumber.xcconfig.
  2. Set both build numbers to something random like foobar.
  3. Do a build.

The resulting build will have foobar as the build number, even though the xcconfig file will be updated with the new number. The next build will use the new number.

As a workaround, you must do a build before your final release build if you are releasing the app. And yes, Zev, you're talking to yourself in the second person.

@ZevEisenberg ZevEisenberg added the bug Something isn't working label Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant