From db4b6bd510b83d84cec76dd146f6eaaed51f3c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Fri, 3 Apr 2015 14:51:15 -0700 Subject: iOS projects require -ObjC in OTHER_LDFLAGS #1184 added `-[NSProcessInfo(MGLAdditions) mgl_isInterfaceBuilderDesignablesAgent]`, which only gets pulled in if you add `-ObjC` to `OTHER_LDFLAGS`. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f48a72b994..d82b15f5f5 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,9 @@ If you merely want to install the library for iOS and try it out as an Objective - `libc++.dylib` - `libsqlite3.dylib` - `libz.dylib` -4. [Set the Mapbox API access token](#mapbox-api-access-tokens). -5. `#import "MGLMapView.h"` +4. Add `-ObjC` to your target's "Other Linker Flags" build setting (`OTHER_LDFLAGS`). +5. [Set the Mapbox API access token](#mapbox-api-access-tokens). +6. `#import "MGLMapView.h"` 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. -- cgit v1.2.1