简体   繁体   中英

Xcode 6.3 New File Issue

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, instead of the default yellow color. And when i Right click the TestFolder -> New File, a blank file is created with out the option to choose a template for the file.

What's causing this problem? Thanks.

在此输入图像描述

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.

在此输入图像描述

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.

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.

对于想知道如何获取“ 复制文件夹”对话框的人 ,只需将文件夹拖放到XCode7中,弹出窗口就会出现在您可以选择文件夹引用或创建组选项的位置。

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

Xcode项目视图

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 :)

由于你正在添加文件夹,它将创建文件夹,以便你看到蓝色,如果你添加组,你会看到默认的黄色。它确实发生在以前的版本,你可能还没有意识到

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM