Since the message says “building for the App store” it’s related to your distribution profile, not the development one.
Confirm the bundle ID in the profile and in Xojo are the same. Make sure you’ve got a team set in Xojo. Download and double-click the the profile to launch Xcode to make sure it’s there. Don’t know what else to suggest.