https://developers.google.com/maps/documentation/ios/start
首先下载Google Map的sdk for iOS
申请 APIKey
- Launch Xcode and either open an existing project, or create a new project.
- If you're new to iOS, create a Single View Application, and disable Use Storyboards but ensure that Use Automatic Reference Counting is on.
- Drag the
GoogleMaps.framework
bundle to the Frameworks group of your project. When prompted, select Copy items into destination group's folder. - Right-click
GoogleMaps.framework
in your project, and select Show In Finder. - Drag the
GoogleMaps.bundle
from theResources
folder to your project. We suggest putting it in the Frameworks group. When prompted, ensure Copy items into destination group's folder is not selected. - Select your project from the Project Navigator, and choose your application's target.
- Open the Build Phases tab, and within Link Binary with Libraries, add the following frameworks:
- AVFoundation.framework
- CoreData.framework
- CoreLocation.framework
- CoreText.framework
- GLKit.framework
- ImageIO.framework
- libc++.dylib
- libicucore.dylib
- libz.dylib
- OpenGLES.framework
- QuartzCore.framework
- SystemConfiguration.framework
- Choose your project, rather than a specific target, and open the Build Settings tab.
- Replace the default value of