![]() Shift-click on the first and last files in the fmdb folder to select all the. Within the project navigator panel, unfold the fmdb -> src -> fmdb folder to list the source code files (highlighted in Figure 47-2) for the FMDB wrapper. A new Xcode project window will also open containing the FMDB source files. Xcode will check out the files and save them at the designated location. Select the master branch, click the Clone button, and choose a location on your local file system into which the files are to be checked out before clicking the Clone button again. In the dialog, enter the following GitHub URL into the repository URL field and click on Clone: ![]() Begin by selecting the Xcode Source Control -> Clone… menu option to display the Clone dialog: Figure 47-1 The source code for FMDB is stored on the GitHub source code repository and can be downloaded directly onto your development system from within Xcode. To use FMDB, the source files for the wrapper will need to be added to the project. The full book contains 93 chapters and 760 pages of in-depth information. You are reading a sample chapter from iOS 16 App Development Essentials.īuy the full book now in eBook or Print format. From this list, search for, and then select libsqlite3.tbd and click Add. To add another library or framework, click the ‘+’ button to display the full list. Finally, the Link Binary with Libraries section lists the libraries and frameworks already included in the project. Next, select the Build Phases tab to display the build information. To add this library, select the target entry in the Xcode project navigator (the top entry with the product name) to display the General information panel. Failure to include this library will result in build errors. Once the project has been created, the next step is to configure the project to include the SQLite dynamic library (libsqlite3.tbd) during the link phase of the build process. Creating and Preparing the SQLite App Projectīegin by launching the Xcode environment and creating a new iOS App project named Database configured for the Swift programming language. Those readers unfamiliar with these technologies in the context of iOS app development are encouraged to read the iOS 16 Database Implementation using SQLite before proceeding. Some knowledge of SQL and SQLite is assumed throughout this tutorial. In addition to data storage, a feature will also be implemented to allow the user to search the database for a specified contact name, address, and phone number. This chapter focuses on creating a somewhat rudimentary iOS app that stores contact information (names, addresses, and telephone numbers) in an SQLite database. In this chapter, we will put this knowledge to use by creating a simple example app that demonstrates SQLite-based database implementation and management on iOS using Swift and the FMDB wrapper. The chapter entitled iOS 16 Database Implementation using SQLite discussed the basic concepts of integrating an SQLite-based database into iOS apps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |