Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode error "Unable to create a save panel." when creating new Swift file

Tags:

xcode

swiftui

I want to create a new Swift file and I get this error... how can I fix this? I'm using Xcode 13.1.

Unable to create a save panel.

Try your operation again. If that fails, quit and relaunch the application and try again.

Unable to create a save panel.

like image 503
Nat Serrano Avatar asked Oct 13 '25 10:10

Nat Serrano


2 Answers

Same problem Here.

Thanks to Ryan Fung for the Workaround:

I think I have found what did I do that triggered this bug. With my external monitor (non-retina) still attached, I went to System Preferences -> Display, dragged the menu back to the MacBook internal display, restarted Xcode, then the problem went away. It seems to be related to external non-retina display chosen as the main monitor.

like image 159
Reto Arnold Avatar answered Oct 15 '25 03:10

Reto Arnold


I did face the same issue here but in my case I just Force Quit Xcode and Re-Open it again, and then it's work normally.

like image 38
Rattanakoudom Sambath Avatar answered Oct 15 '25 04:10

Rattanakoudom Sambath