Mac SDK Setup (v3)

Get started with your Mac implementation.

Legacy Version

V3 of the Paddle Mac SDK is a deprecated version and sellers implementing the SDK for the first time are encouraged to download and implement our latest version.

1. Add to project

Add the Paddle framework to your Xcode project by dragging from the finder.

2. Add to target

Add the Paddle framework to your Xcode project by dragging from the finder.

3. Copy files

Now you need to tell Xcode to copy the framework into your project. Still within ‘Build Phases’ add a build phase (New Copy Files Build Phase), make sure ‘Destination’ is set to ‘Frameworks’.

4. Sandbox settings

If your app is sandboxed you should enable Outgoing Connection in your Capabilities/Entitlements to allow the framework to send data to Paddle.

5. Integration code

The only remaining job is to import the headers into your class (usually AppDelegate.h) and set your keys.

#import <Paddle/Paddle.h>
	
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    Paddle *paddle = [Paddle sharedInstance];
    [paddle setProductId:@"503866"];
    [paddle setVendorId:@"13578"];
    [paddle setApiKey:@"298c1c56fa2c2733220d54fdf211ea49"];
}