If everything went as expected, you’ll see this: Build and run the project to ensure everything compiles. This file is what you need to open when you want to work on the project. If you have the starter project open in Xcode, close it now and open. Notice the folders that CocoaPods added as well as Agents Partner.xcworkspace. In Finder, open the root directory of the starter project. Once it’s complete, you’ll see a line near the bottom that begins with Pod installation complete!. It may take a bit for Realm to install, so keep an eye on your terminal. This tells CocoaPods to scan through your Podfile and install any pods that you have listed in the file. In Terminal and in the root directory of your project, run the following command: Copy the following text and paste it into the newly created file: In the root directory of the starter project, create a new file named Podfile. Note: If you’re not familiar with CocoaPods or need help installing it, check out our CocoaPods tutorial. Currently, the app contains only the map functionality using MapKit, which is already set up in the project. You’ll need an assistant to keep notes of your findings, but since the agency doesn’t have the budget to hire a new one, you decide to create a virtual assistant for yourself: an app named Agents Partner. Your job is to document the species found in the largest national parks in the United States. Here’s the scenario: You’ve accepted a position as an intern in the National Park Service. Use the Download Materials button at the top or bottom of this tutorial to download the starter project. By the end of this tutorial, you’ll know how to link the Realm framework, create models, perform queries and update records. This tutorial introduces you to the basic features of Realm on iOS. Unlike wrappers around Core Data, Realm doesn’t rely on Core Data or even an SQLite back end. Realm is a cross-platform mobile database solution designed for mobile applications that you can integrate with your iOS projects. Bill Kastanakis wrote the original and Bradley Johnson completed an earlier update. Update note: Felipe Laso-Marsetti updated this tutorial for Swift 4.2, Xcode 10 and iOS 12.
0 Comments
Leave a Reply. |