YelpKit is a iOS framework for Objective-C, and contains some basics for image loading, caching, requests, views and layouts.
YelpKit includes GHKit, which is a set of extensions and utilities for Objective-C.
YelpKit assumes that you are using a modern Xcode project building to the DerivedData directory. Confirm your settings via the "File" menu > "Project Settings...". On the "Build" tab within the sheet that opens, click the "Advanced..." button and confirm that your "Build Location" is the "Derived Data Location".
- Add Git submodule to your project:
git submodule add git://github.com/Yelp/YelpKit.git YelpKit
- Pull YelpKit submodule dependencies:
git submodule update --recursive --init
- Add cross-project reference by dragging YelpKit.xcodeproj to your project
- Open Build Settings for your project
- Add the following Header Search Paths (including the quotes):
"$(BUILT_PRODUCTS_DIR)/../../Headers"
- Add Other Linker Flags for
-ObjC -all_load
- Open Build Phases for the target you want to link YelpKit into
- Add direct dependency on the YelpKit aggregate target
- Link against YelpKit:
- libYelpKit.a on iOS
- YelpKit.framework on OS X
- Import the YelpKit headers via
#import <YelpKit/YelpKit.h>
- If you want to use GHKit, you can
#import <GHKit/GHKit.h>
- Add dependencies for QuartzCore.framework and MapKit.framework
- Build the project to verify installation is successful