Can't create a new file under the project w/ XCode 6.4 beta under El Capitan

912 views Asked by At

I'll create a new file while the group is selected, but the file gets created outside the project hierarchy.

What gives?

2

There are 2 answers

2
zhubofei On

You can create a Swift File instead of cocoa class file.

0
Joe On

I was able to get it done with this workaround:

  • Create the Cocoa class
  • ⌘-drag it into the project/folder I want (unchecking 'Copy items if needed' and selecting 'Create folder references')
  • Delete the files that are outside the project by Right-Clicking, selecting 'Delete' and then 'Remove References'