![which mac to buy for xcode which mac to buy for xcode](https://www.macinstruct.com/images/iossim/iossim3.png)
And I'm going to make sure that it's in the Xcode directory. These other items don't matter, but if you have an account you're welcome to use it. Make sure that the language C++ is selected. And this new project will be under macOS and Command Line Tool. So I just want to select this Xcode directory, and I'm going to name it SQL-Cpp. It'll be right next to the exercise files. This is the directory that I made off of my home directory and Xcode.
![which mac to buy for xcode which mac to buy for xcode](https://miro.medium.com/max/1400/1*qy6cWN9LUPH8zk2ZbkKVww.png)
I'm going to store this in the Xcode directory. And you'll see this is a really convenient way to do this. And inside of this workspace we will include a project and we'll also include the exercise files. I'm going to open up Xcode here from my doc. Of course, no database is completely SQL standard compliant. It's incredibly popular, it's incredibly powerful, and it's incredibly portable, which is one of the reasons we're using it for the examples in this course, because it's also very standards compliant for the SQLite standard. Your IOT devices, most of them probably have an SQLite database in them. So these same files will work on any operating system, Windows, Mac, Linux, any mobile device. SQLite stores its entire database in one platform-independent file. And this is one of the great things about SQLite. And inside the include directories, its corresponding header file, sqlite3.h, and another header file which we will look at later on in this chapter. Any standard C compiler will compile this.
![which mac to buy for xcode which mac to buy for xcode](https://miro.medium.com/max/1400/0*2HI8tSe0xygHYEQc.png)
Which mac to buy for xcode code#
What this is is all of the source code for the entire database management system, all in one file. And when I take information on that with Command + I, you'll notice it's 8.3 megabytes of C code. I'm going to open it up here in the sqlite3 directory, and it's sqlite3.c. And I've already downloaded and included this. And this one is version 3.35.5, which is the latest version as of the time that I am recording this. You'll notice under Source Code there's an SQLite amalgamation. I've already downloaded it and included it in the exercise files.
Which mac to buy for xcode download#
Now, here on the SQLite download page you don't need to download this. However it looks, it will still work just fine. And of course, the rest of your home directory will look different than mine. We will be using the exercise files from this Xcode directory. And inside of the Xcode directory I've made a copy of the exercise files. And inside of that home directory I've created a directory called Xcode. Yours will be called something different, whatever it was called when you set up your Mac but it will have this house icon. So my home directory is called billw on this Mac, and it has this little house icon. So we've created a directory called Xcode inside my home directory. When the exercise files are on the desktop, Xcode will need to ask for permission to use the data files in the desktop directory every time you compile, which is often in this course. Because of recent security enhancements to macOS we cannot use the exercise files on the desktop. This is necessarily a long and detailed process, so take your time and pay attention to the details. In this lesson, we'll set up Xcode on a Mac to work with the exercise files for this course.