If you are still stuck in 2024, this fixed the problem for me: Under Target, Info, Bundle Version String (short), instead of a fixed version string, change it to $(MARKETING_VERSION).
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: