If you do not already have a Google Cloud Platform account and a project with billing enabled, please see the Getting Started with Google Maps Platform guide to create a billing account and a project. But, before coding, the next thing you'll need is an API key.įor the following enablement step, enable Maps SDK for iOS. Once you're done, the pods will be installed and a new. You'll be opening a different project file once it's done, and it's pretty common for a developer to get confused as to where everything is if they didn't previously close Xcode! Now, in a terminal, go to your project directory and run ‘pod install' like this: Be sure to close it, because in the next step you are going to edit the underlying project. Edit it to add a pod for GoogleMaps like this: target '' do Using Terminal, enter the following command: pod initĪ file called Podfile will be created for you. Close Xcode and using Terminal, navigate to that directory. Take a note of the directory where it is created. Press ‘Next' and the project will be created for you. When asked for the Product Name, you can choose anything you like, but be sure to note the Bundle Identifier that is generated for you. Select ‘Single View Application' for iOS, and press ‘Next' On the next screen you'll be asked for a template for your new project. On here, select ‘Create a new Xcode project' Open Xcode and you'll see the ‘Welcome to Xcode' screen. The easiest way to do this is to create a new Project in Xcode, add a Podfile to that, and install the pods there. To install the SDK you need to create a Podfile in your project directory that CocoaPods will use to download and configure the requisite dependencies. It can be installed from the terminal like this: sudo gem install cocoapodsįor more details on CocoaPods, see the CocoaPods Getting Started guide. If you don't have this tool already, you'll need to install it before going any further. CocoaPods is an open source dependency management tool for Swift and Objective-C projects. The Places SDK for iOS is available as a CocoaPods pod. This tutorial uses Apple's Xcode tool, along with the Objective-C language to create a simple iOS application that runs in an emulator. Before you begin coding, there are a few prerequisites that you'll need to set up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |