Xcode 8: Cannot add new swift file

I am wong on a new IOS universal app. I need to add a new ViewController.swift file to my project to support the TableViewController on one of the app's tabs. When I select the project name in the project navigator, click file>new file..., choose coco file, Give it a name and choose UITableViewController to inherrit from and finally click create, the file never is created. What could be going wrong?

Same problem here. I checked in Finder and the file is created in a directory called emplate (i.e. Template without the T).


Effectively useless. When's the next seed?

QuickRadar is failing (too many HTTP redirects), so here goes:


Summary:


A. File → New → OS X → Source → Cocoa Class

B. File → New → OS X → Source → Swift File


Both fail to add a new class to the project.


Steps to Reproduce:


A.


1. File → New → OS X → Source → Cocoa Class

2. Fill out the details and submit, setting NSStackView as the parent class (also not, no autocomplete for NSStackView class in interface)


B.


1. File → New → OS X → Source → Swift File

2. Fill out details and submit


Expected Results:


Both: A new class should be created and added to the project.


Actual Results:


A. Class is added in a folder called ctSwift/ and not added to the project.

B. Class is added in a folder called emplate/ and not added to the project.

The same problem is described here: https://forums.developer.apple.com/thread/76035

I am experiencing this in Xcode 8.3.2 - not beta

The bug seems to be that XCode truncates some String and keep only last 7 characters!


Nota: I do not experience the problem in XCode 8.3.2.

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

But my Xcode is not in the Downloads but in Applications and met the same problem. Do you have other solutions?

If I create Obj-C file, Xcode will create ctive-C files. I am using Xcode 8.3.2

Xcode 8: Cannot add new swift file
 
 
Q