godot icon indicating copy to clipboard operation
godot copied to clipboard

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

Open owlnewworlds opened this issue 1 year ago • 2 comments

Tested versions

  • Reproductible in Godot 4.3 Beta 3 and Godot 4.3 RC 1

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

  • Export any project to iOS and do not provide provisioning settings in the export settings.
  • Open the XCode project that has been generated.
  • Run the game on an iOS device => Build error like mentioned in the description

Minimal reproduction project (MRP)

N/A

owlnewworlds avatar Jul 28 '24 13:07 owlnewworlds

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.

bruvzg avatar Jul 28 '24 14:07 bruvzg

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 avatar Jul 28 '24 14:07 owlnewworlds

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

owlnewworlds avatar Aug 01 '24 05:08 owlnewworlds

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!

hhhapz avatar Aug 13 '24 09:08 hhhapz

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.

owlnewworlds avatar Aug 13 '24 19:08 owlnewworlds

Also running into this in 4.4.1.

AdriaandeJongh avatar Aug 28 '25 12:08 AdriaandeJongh