I would like to add GoogleMaps
to my iOS project but I don\'t want to use CocoaPods
. Is there any way to achieve that?
Sure there is:
How did I do it (Useful for any library you need)
If you need instructions on how to install it manually, you can use the waybackmachine websitea and put the corresponding url, setting an earlier date. I'll save you some time:
Adding Google Maps the old way:
-ObjC
. If these settings are not visible, change the filter in the Build Settings bar from Basic to All.#import <GoogleMaps/GoogleMaps.h>
application:didFinishLaunchingWithOptions:
method, replacing API_KEY with your API key. [GMSServices provideAPIKey:@"API_KEY"];
#import <GoogleMaps/GoogleMaps.h>
Add the following to your application:didFinishLaunchingWithOptions:
method, replacing API_KEY
with your API key.
[GMSServices provideAPIKey:@"API_KEY"];
https://www.gstatic.com/cpdc/aa3052925ceeea2d-GoogleMaps-1.13.2.tar.gz
Copy and Open this url.
Drag to your Xcode project GoogleMaps.framework.
*select Copy items into destination group's folder
Right click on GoogleMaps.framework -Show in finder
Inside Resources folder GoogleMaps.bundle , Drag this to Project (*Don't select copy item).
Import Several FrameWork
Choose your project open the Build Settings tab. In the Other Linker Flags section add -ObjC in both .Screen shot of adding -ObjC
Add the following to your application:didFinishLaunchingWithOptions: method, replacing API_KEY with your API key. [GMSServices provideAPIKey:@"API_KEY"];
(*get api key https://developers.google.com/maps/documentation/ios-sdk/places#whats_in_the_api_name_ios_places)
Please let me know any error you have found. It works for Xcode 7+,iOS 9+.