-
Book Overview & Buying
-
Table Of Contents
Swift Cookbook
By :
Xcode projects comes with lots of options. Here, we will know some of them, mainly the Swift-specific ones.
To do this recipe, just create a new project, as shown in the previous recipe.
Follow these steps for changing some Swift options:



-O0); however, when we are going to create the final product (release mode), we will usually set an optimization level such as-Os, which means fastest and smallest.Sometimes, with Objective-C, when you used to set a high level of optimization, the debugger used to loose some of the variable values. I haven't seen this phenomenon with Swift yet, but it's good to have it in mind.
module.map file is. If you have more than one path to search, you need to set them one per line. If you have different paths for debug and release, you can still use variables such as $(CONFIGURATION) or $(TARGET).You can use absolute or relative paths, but I would give preference to the relative ones.
Changing settings is something that you have to do mainly when your project starts growing. There are some options that you set differently for debug and release configurations.
Xcode has a lot of configuration settings; showing all of them would be out of the scope of this book. I recommend that you at least look at some of them, mainly if you want to work with big projects. My main recommendation here is: do not change your settings without synchronizing with the other members of your team (mainly with the project manager). If you cause a conflict with the VCS, it could be hard work to fix it.
Change the font size
Change margin width
Change background colour