iOS export only works with Debug ticked

Godot Version

4.3

Question

My exports for iOS fail every time unless I leave “Export with Debug” ticked in the Save a File window.
If I don’t tick “Export with Debug”, I get the following error:
[AppName] has conflicting provisioning settings. [AppName] is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to “Apple Development” in the build settings editor, or switch to manual signing in the Signing & Capabilities editor. (in target [AppName] from project [AppName])

Of course, I can just export with “Export with Debug” ticked, but I don’t like not knowing what’s going on. The mention of conflicting provisioning settings is also a bit worrying.

Is there somewhere a thorough tutorial for exporting to iOS? The manual doesn’t explain anything