Send feedback
Carthage Installation
Stay organized with collections
Save and categorize content based on your preferences.
Note: Carthage does not
support libraries built targeting a minimum version of iOS 13 and later.
That means the latest version of the Places SDK for iOS that supports installation with Carthage is 6.2.1.
Install with Carthage
The Places SDK for iOS is available to use with Carthage, a simple, decentralized dependency manager for Swift and Objective-C Cocoa projects.
Install Carthage. There are several methods, so
see the Carthage
README file for exact steps.
If you don't have an Xcode project yet, create one now and save it to
your local machine. If you're newer to iOS development, create a new project
and select the iOS App template .
Create a file named Cartfile
in your project directory. This file defines your project's dependencies.
Edit the Cartfile
and add your dependencies along with their versions :
binary "https://dl.google.com/geosdk/GooglePlaces.json" == 6.2.1
Make sure to regularly run carthage outdated
to detect when there is a newer
version to ensure you're always on the latest.
Save the Cartfile
.
In a terminal window, go to the directory containing the Cartfile
:
cd <path-to-project>
Run the carthage update
command. This installs the APIs specified in the Cartfile
, along with any dependencies they may have.
In the Finder, in your project directory, go to the downloaded framework files under Carthage/Build/iOS
.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?