diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-05-05 17:00:25 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-05-05 17:00:25 -0700 |
commit | 388d5da3055b0a0766e8f1b247c9ef67d22d9b1e (patch) | |
tree | 6eec4d8f16ddc1446cc506426a5de31105970bf1 | |
parent | 1e8a480e1b7591b15bd0c6759dbd9d9418805cd7 (diff) | |
download | qtlocation-mapboxgl-388d5da3055b0a0766e8f1b247c9ef67d22d9b1e.tar.gz |
add mention of CocoaPods to get ahead of release
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | ios/MapboxGL.podspec | 1 |
2 files changed, 13 insertions, 1 deletions
@@ -47,6 +47,19 @@ Target OS X: 10.9+ If you merely want to install the library for iOS and try it out as an Objective-C consumer: +### CocoaPods + +CocoaPods is preferred. As of yet, Mapbox GL isn't in the global specs repo, but you can use it like so in your `Podfile`: + +```ruby +use_frameworks! +pod 'MapboxGL', :podspec => 'https://raw.githubusercontent.com/mapbox/mapbox-gl-native/master/ios/MapboxGL.podspec' +``` + +Once the library stabilizes, a mere `pod 'MapboxGL'` will work. + +### Manually + 0. Use [Homebrew](http://brew.sh/) to install Boost headers and [appledoc](http://gentlebytes.com/appledoc/): `brew install boost appledoc`. 1. Run `make ipackage`. The packaging script will produce the statically-linked `libMapboxGL.a`, `MapboxGL.bundle` for resources, a `Headers` folder, and a `Docs` folder with HTML API documentation. 2. Copy the contents of `build/ios/pkg/static` into your project. It should happen automatically, but ensure that: diff --git a/ios/MapboxGL.podspec b/ios/MapboxGL.podspec index fa6f806ce7..3529e3c006 100644 --- a/ios/MapboxGL.podspec +++ b/ios/MapboxGL.podspec @@ -26,7 +26,6 @@ Pod::Spec.new do |m| m.resource_bundle = { 'MapboxGL' => 'MapboxGL.bundle/*' } m.vendored_library = 'libMapboxGL.a' - m.frameworks = 'CoreLocation', 'CoreTelephony', 'GLKit', 'ImageIO', 'MobileCoreServices', 'QuartzCore', 'SystemConfiguration' m.libraries = 'c++', 'sqlite3', 'z' m.xcconfig = { 'OTHER_CPLUSPLUSFLAGS' => '-std=gnu++11 -stdlib=libc++' } |