[英]xcode 6.01+ swift: What is the minimal project structure I must have / How to remove unneeded file references?
I'm trying to create a very lean iOS project structure with no unneeded files. 我正在尝试创建一个非常精简的iOS项目结构,其中没有不需要的文件。 If one does
new --> project
and and selects single view project, you get a basic project file structure which includes main.storyboard
, LaunchScreen.xib
and a folder projectTests
. 如果执行
main.storyboard
new --> project
并选择单视图项目, main.storyboard
获得一个基本的项目文件结构,其中包括main.storyboard
, LaunchScreen.xib
和一个文件夹projectTests
。 If my code doesn't require the interface builder files and I don't want unit tests, besides removing the files, what other settings do I need to remove or change to clean things up? 如果我的代码不需要界面生成器文件,并且我不想进行单元测试,那么除了删除文件之外,还需要删除或更改其他哪些设置来清理内容?
From your described context, my best guess is you want a clean project to experiment on swift. 根据您所描述的上下文,我最好的猜测是您希望一个干净的项目能够迅速进行试验。 I suggest you choose
OSX -> Application -> Command Line Tool
template. 我建议您选择
OSX -> Application -> Command Line Tool
模板。 You'll have a clean project with only one main.swift
. 您将只有一个
main.swift
拥有一个干净的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.