Xcode creating erSwift folder

Xcode 8.3.1


When I create a new ViewController, Xcode is creating a folder named erSwift and dropping the new VC into it, regardless of whare I tell it to be placed. Additionally, the file doesn't show up in the project navigator (it has to be manually added).


There is nothing in the release notes that indicate this is a new thing. Has anyone else experienced this?

I just started running into this on Xcode 8.3.2.


Additional details:

- I have two other versions of Xcode installed (7.3.1 and 8.0)

- Xcode creates the folder erSwift when you create Cocoa Touch based files

- Xcode creates a different folder called emplate when you create regular Swift files or objective-c header files.

- Xcode creates a different folder called 'ty File' when you create objective-c .m files

- Xcode creates a different folder called seSwift when you create a Unit test case file


Other file types may create other folders, but that's the extent of my testing today.

Running 8.3.2. No problem when I create a new UIViewController class.


To get it created in the right folder, just selected the Group.


Seems the names of folders are tuncated to last 7 chararcters.

Surprising that XCode creates new folder. I never experienced it.

What do you define as Group and targets ?

It looks like it might have been related to the install location of Xcode. It turns out that I had accidentally installed Xcode in the Downloads directory after downloading it from https://developer.apple.com/download/more/. Moving it to Applications caused other issues related to the move, so at the end I had to reinstall.

Word of advice: When you install Xcode from an xip, make sure to first move the xip to Applications and THEN extract Xcode, instead of the other way around, otherwise you may run into problems.

I also have Xcode 7.3 and 8.3. I got erSwift and cannot create file. But I am sure I do not keep Xcode in Downloads.

Anyone please help?

Also, I selected the Group.

After four years, the problem still exists in Xcode 12.4 (12D4e). Xcode creates a directory named emplate and then puts the new file inside the directory and never add it to the project.

Xcode creating erSwift folder
 
 
Q