This repo provides a demo app for the Shortcut iOS SDK. To get it working please follow these steps:
- Clone the example code by typing the following command in your terminal:
git clone https://github.com/shortcutmedia/shortcut-sdk-ios-example.gitor download the zip file and unzip it. - Download the latest SDK from the releases page (just download the file ShortcutSDK.zip, you do not need the source code) and unzip it.
- Copy ShortcutSDK.framework and ShortcutSDK.bundle into the shortcut-sdk-ios-example folder.
- Open the project in Xcode.
- Use the following keys for development: Access key:
40552bf6b886ab0a89a50712b256bb423dd9e180and secret token13679446ee03264934bf97e2b29b9dfc74428ab9. contact us for production keys. Place the keys in AppDelegate.m in functionapplication didFinishLaunchingWithOptionson lines 22 and 23. - Run the project in Xcode.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[SCMSDKConfig sharedConfig].accessKey = @"YOUR_ACCESS_KEY";
[SCMSDKConfig sharedConfig].secretToken = @"YOUR_SECRET_TOKEN";With these keys you are able to scan the Lenna test image.
To be able to recognize your own items you need to add your own access key and secret token in the AppDelegate.m file. You can get your keys by emailing support@shortcutmedia.com.