From the course: Code Clinic: Swift

How to use the exercise files - Swift Tutorial

From the course: Code Clinic: Swift

Start my 1-month free trial

How to use the exercise files

- [Instructor] The exercise files for this course are organized by chapters. There's also a folder called Assets that contains the CSV file that we're going to use at a certain point in the course. In those sub folders, you'll find a folder called Start, and a folder called Final, that represent the start and final states of the application in that movie. The final states are there just for your convenience. The start states are the files that you're going to be opening up when you see the links on the screen. So follow those paths, and then open up the Xcode project file by double clicking it to open it up in Xcode. This is pretty straight forward for the most part, but some of the applications use external frameworks. Like Realm is being used in this project. For those projects, you're likely to see errors when you open up Xcode. That's because at the time of this recording, I'm using the latest version of these frameworks and the latest version of Xcode and Swift. But likely, when you watch the course, Xcode and Swift will be using a later version, making these frameworks incompatible. There is an easy solution, and that is, downloading the latest version of the frameworks and then overriding the frameworks in the project. I'll show you how to do that. So in Chapter four, we use the audio kit framework. So if I open up this project, you'll see that there's the audio kit framework here. And if I were using a later version of Xcode, and I open up this project, I might see an error that says, "The framework is incompatible with this version of Swift." To override it, you don't have to close the project, but I am going to close it for now. You just need to override that framework. In the course, I'll show you where to download the framework. I'll create a new finder window. I'll go to the downloads folder, and I'll find the audio kit framework, which, again, I'll show you where to download in the course, and then what you wanna do is simply click and drag this into the same directory, and then make sure to hit the Replace button to replace that framework. So after you downloaded the latest version of the framework, you can update it, open the project, and everything should work just fine. For that reason, you definitely want to be using the latest version of Xcode as well. For those of you following along without the exercise files, you can still follow along, too. We're going to set up many different products in this course, and I'm always going to show you the starting files, including all the user interface elements in our story board, and all the code, so that you can set your files up in the same way and follow along as well.

Contents