godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.89k stars 20.15k forks source link

iOS exports: XCode generated files always come with default provisioning even if empty in export settings #94876

Open owlnewworlds opened 1 month ago

owlnewworlds commented 1 month ago

Tested versions

System information

Godot v4.3.rc1 - macOS 14.5.0 - Vulkan (Mobile) - integrated Apple M3 Pro - Apple M3 Pro (12 Threads)

Issue description

Each time I open the XCode project generated by the iOS export and run my game, I have a build error

"[game] has conflicting provisioning settings. [game] is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified."

I must uncheck/check "Automatically manage signing" and then choose my provisioning profile to run the game. If I keep the corresponding export settings empty, this should not happen ?

Steps to reproduce

Minimal reproduction project (MRP)

N/A

bruvzg commented 1 month ago

Are you exporting debug version (checkbox is in the bottom of exported file selection dialog, it is on by default)? Debug version default to iPhone Developer if you leave string empty. You should be able to set both debug and release sign identity to iPhone Distribution to change it.

owlnewworlds commented 1 month ago

Are you exporting debug version (checkbox is in the bottom of exported file selection dialog, it is on by default)? Debug version default to iPhone Developer if you leave string empty. You should be able to set both debug and release sign identity to iPhone Distribution to change it.

No, I uncheck the debug checkbox before exporting ^^

owlnewworlds commented 1 month ago

Anyone could check this? It's like even when debug is unchecked the xcode project exported comes with a default provisioning.

hhhapz commented 1 month ago

I was encountering the same issue and came across this on Stack Overflow. It does let me properly export my project from Godot project with debug turned off/in release mode. I'm not very familiar with Apple development but I wanted to share if this is relevant, or perhaps this is something I shouldn't be doing.

Edit: the instructions in the SO post basically instruct to change the identity to "iPhone Developer" for Release as well. My guess (since I don't have much experience here) is that since it's managed by XCode anyway, this isn't an issue? Again, I could be wrong, and please correct me if I am!

owlnewworlds commented 1 month ago

I'm going to take a look at that file because it may be the issue. It is clearly created with some wrong data which cause errors once opened in XCode.