The new version of Xcode 15.3 broke the behavior of incrementing build numbers with agvtool
which I used to automate to update the build number after each build.
The observation is that after running this in my project directory:
agvtool bump
Xcode removed the section "Package Dependencies" in the project navigation pane which results in failing a subsequent build with this error message:
Missing package product 'mypackage'
To solve this I have to reset package caches under File>Packages. This will restore the Package Dependencies section in the navigation pane of Xcode. It seems to be a bug of the new Xcode version 15.3 as this was working without any issues in the previous versions.
Any idea?
Looks like this issue has been resolved in Xcode 16.0 beta 2 (at least that's what I'm using now).
I can run agvtool bump -all
and it won't break anything and next build will run just fine.
However, I was only able to run it as a script as a build post-action. If I put it as a build pre-action or as a build phase, the build will just cancel.