nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.9k stars 639 forks source link

Extension stops working after restart #1052

Closed drekka closed 3 years ago

drekka commented 3 years ago

I honestly expect this to be a Xcode issue, but I'll put it up here to see if anyone has an ideas.

Basically I have two Xcode's in my Applications folder. One with the name "Xcode" (v13 downloaded from the App Store) and one named "Xcode 12.5.1" manually downloaded from the developer portal because I can use v13 for work.

I have the SwiftFormat extension loaded and when I start Xcode it appears in the Editor menu as expected.

However if I restart the machine, it disappears from Xcode and if I open the system preferences - Extensions, the Xcode Source Editor section is missing.

To get it back I then have to drag Xcode itself from the Applications folder to somewhere else, then drag it back. Then the Xcode Source Editor extensions group will appear in system preferences and SwiftFormat appears back in the Editor menu.

But I have to do this every time I reboot. So my question is - is this something to do with the fact I have two Xcodes, or something else?

Any ideas?

nicklockwood commented 3 years ago

It's most likely related to the two Xcodes. This is a longstanding issue that's come up several times before.

drekka commented 3 years ago

Cool. Thought it might be but just wanted to get some updated feedback :-)