Xcode 6.3 New File Issue

前端 未结 6 1153
甜味超标
甜味超标 2020-12-07 01:03

I recently updated my Xcode to 6.3 stable version. When I try to add a new folder (Right Click ViewControllers -> Add Files to ... -> New Folder) it appears in blue color,

相关标签:
6条回答
  • 2020-12-07 01:28

    I believe this is a bug on xcode 6.3. It doesn't happen to the previous version. And if I may add, drag-dropping a folder to the project also produces a blue folder, inside are files which I can't properly call inside my classes. It doesn't even appear on the New File -> Cocoa Touch -> Subclass if you intend to subclass it.

    Edit: Figured out the solution. Select "NEW GROUPS" on the dialog when adding. I didn't noticed it at first since previous xcodes have "NEW GROUPS" selected as default.

    0 讨论(0)
  • 2020-12-07 01:42

    Since you are doing add folder it will create folder so that u will see blue and if you do add group you will see default yellow color.It does occurs in previous version too you mightn't have realized at that time

    0 讨论(0)
  • 2020-12-07 01:44

    Yup, found the reason for this. By default, XCode was selecting "Create folder references" which was causing the problem. I selected the "Create groups" radio button instead as shown in the image below and I got the expected result. Cheers.

    0 讨论(0)
  • 2020-12-07 01:48

    How do you get "New Folder"? All I see is

    Xcode project view

    I think this looks like a simple bug. Deinstall and Reinstall Xcode if restarting Xcode and your Mac does not help. Maybe that solves your problem.

    Hope that helps :)

    0 讨论(0)
  • 2020-12-07 01:50

    This error comes when you update Xcode to new version, When you add a new file or folder,from dragging or add from EDIT option,

    the default selected option will be Create folder reference radio which add only reference to that file or folder but not the actual. This problem can be solve by selecting Create Group radio when adding file/folder.

    This can solve your problem.

    0 讨论(0)
  • 2020-12-07 01:52

    For people wondering how to get Copy Folder Dialog box , Just Drag and drop folders into XCode7 and the popup will appear where you can select either folder reference or create group option.

    0 讨论(0)
提交回复
热议问题