简体   繁体   English

xcode 6.01+ swift:我必须具备的最小项目结构/如何删除不需要的文件引用?

[英]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.storyboardLaunchScreen.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.

相关问题 Xcode 模拟器:如何删除旧的不需要的设备? - Xcode Simulator: how to remove older unneeded devices? 如何在我的主要 Xcode 项目中添加引用类的 Swift package? - How do I add a Swift package that references classes in my main Xcode project? 如何阻止不需要的Swift标准库与我的项目一起提供? - How do I stop unneeded Swift standard libraries from being shipped with my project? 如何在iOS swift项目中删除Pod文件的一部分? - How can I remove part of pod file in iOS swift project? Xcode 9认为我在一个项目上有两个遥控器...我没有-如何删除第二个遥控器? - Xcode 9 thinks I have two remotes on a project… I don't - how can I remove the second one? 如何在Xcode项目中修复文件夹引用 - How do I fix folder references inside of Xcode project 如何完全删除项目中的引用? - How to completely remove references in a project? Swift - Firestore 文档引用必须具有偶数个段,但 - Swift - Firestore Document references must have an even number of segments, but 使用Swift读取Xcode项目中的文件 - Read file in Xcode project with Swift 在我的xcode项目中,我创建了一个HTML文件,必须在按钮的onclick上打印数组的包含内容。 - In my xcode Project i have created a Html file where i have to print the contains of the array on the onclick of a button.How to do this
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM