The PassSlot SDK now contains a demo application which can generate passes. You can find the sample in the samples/PassSlot Demo directory.
The PassSlot SDK requires the PassSlot cloud service for signing passes. You can sign up for a free developer account at PassSlot.com.
You can install the PassSlot SDK either by using CocoaPods or add it yourself.
Add a file Podfile
to your project:
platform :ios, '6.0'
pod 'PassSlot'
For more information see CocoaPods
Drag the PassSlot.framework folder into your project and add it to your target
Link your binary with the following libraries:
- PassKit
- CFNetwork
- Security
- SystemConfiguration
Add -ObjC
to your Other Linker Flags
Import the PassSlot headers where you need it.
#import <PassSlot/PassSlot.h>
NOTE: If you do not want to import PassSlot.h in every file you may add it into you pre-compiled header (<projectname>_Prefix.pch
) file inside of the #ifdef __OBJC__
section
-(BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// ...
[PassSlot start:@"<your app key>"];
// ...
}
This SDK is uses MKNetworkKit