Nat Serrano
Nat Serrano

Reputation: 636

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

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.

Upvotes: 4

Views: 4526

Answers (3)

Rattanakoudom Sambath
Rattanakoudom Sambath

Reputation: 514

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.

Upvotes: 2

claucambra
claucambra

Reputation: 36

Unplugging your external monitor should do the trick. If it doesn't, try restarting Xcode and minimising the window -- this has worked every time for me.

Upvotes: 1

Reto Arnold
Reto Arnold

Reputation: 73

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.

Upvotes: 3

Related Questions