summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-05-05 17:02:25 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-05-05 17:02:25 -0700
commit583dfa7a2faa060ffc3cb26d83c045d3e7679552 (patch)
tree8d5cb6ce8397eca26bbc95406be34a1b8d72424b /README.md
parent388d5da3055b0a0766e8f1b247c9ef67d22d9b1e (diff)
downloadqtlocation-mapboxgl-583dfa7a2faa060ffc3cb26d83c045d3e7679552.tar.gz
iOS README clarifications
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 358e5a5247..8f2dd6db2d 100644
--- a/README.md
+++ b/README.md
@@ -45,9 +45,9 @@ Target OS X: 10.9+
## iOS
-If you merely want to install the library for iOS and try it out as an Objective-C consumer:
+### Use
-### CocoaPods
+#### 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`:
@@ -58,7 +58,7 @@ pod 'MapboxGL', :podspec => 'https://raw.githubusercontent.com/mapbox/mapbox-gl-
Once the library stabilizes, a mere `pod 'MapboxGL'` will work.
-### Manually
+#### 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.
@@ -80,6 +80,8 @@ Once the library stabilizes, a mere `pod 'MapboxGL'` will work.
5. [Set the Mapbox API access token](#mapbox-api-access-tokens).
6. `#import "MapboxGL.h"`
+### Development
+
If you want to build from source and/or contribute to development of the project, run `make iproj`, which will create and open an Xcode project which can build the entire library from source as well as an Objective-C test app. If you don't have an Apple Developer account, change the destination from "My Mac" to a simulator such as "iPhone 6" before you run and build the app.
You can run `make itest` to run the included integration tests. Requires `gem install xcpretty`. If you want to run the tests in Xcode instead, first `make ipackage` to create a local static library version, then open `test/ios/ios-tests.xcodeproj`, and lastly `Command + U` on the `Mapbox GL Tests` application target.