In order to take advantage of the Arena Daemon's features, the developer needs to follow

a few steps for integrating the SDK in his own project.

In this tutorial we will show the steps to achieve that goal.


 Our thanks goes to Matteo Morelli for the development of the Swift version of the sample project.


Installing the SDK

The very first step is the integration of the BDArenaConnector framework into the project.

The SDK supports any kind of project : for iPhone, for iPad or Universal.




Installation with CocoaPods


CocoaPods is a dependency manager for Objective-C, which automates and simplifies

the process of using 3rd-party libraries like BDArenaConnector in your projects.


You can install it with the following command:


$ gem install cocoapods


- configure your Podfile

To integrate BDArenaConnector into your Xcode project using CocoaPods,
specify it in your Podfile:

 pod 'BDArenaConnector'


Then, run the install command:

$ pod install




Manual installation


- step 1

Download the latest version of the SDK from Arena Daemon website, unzip and drag

the BDArenaConnectorSDKxxx directory (where xxx is the version number of the

downloaded SDK) into the Xcode project.






- step 2

Import the following iOS Frameworks into the project :


  • MobileCoreServices.framework
  • QuartzCore.framework
  • AdSupport.framework
  • Foundation.framework
  • UIKit.framework
  • AVFoundation.framework
  • CoreMedia.framework
  • CoreTelephony.framework
  • SystemConfiguration.framework
  • EventKit.framework
  • EventKitUI.framework
  • ImageIO.framework
  • Social.framework (weak linked)
  • MessageUI.framework
  • Security.framework
  • SafariServices.framework
  • SpriteKit.framework


- step 3

Through Build Settings tab, add the following settings:

  • Header Search Paths: /usr/include/libxml2
  • Other Linker Flags: -lxml2 -ObjC




- step 4

Locate the AppDelegate.h header file and add the following import directive :


#import <BDArenaConnector/BDArenaConnector.h>



- step 5

In the application:didFinishLaunchingWithOptions: method of the AppDelegate class, initialize

the BDArenaConnector unique instance passing the appKey associated with the current application

and, immediately after that, call requestAuth method in order to authenticate the local player

for accessing all the other features provided by the Arena Daemon platform:


- (BOOL)application:(UIApplication *)application 

        didFinishLaunchingWithOptions:(NSDictionary *)launchOptions


    [BDArenaConnector initializeWithAppKey:@"YOUR_APP_KEY" runInSandboxEnvironment:YES]; 

    [[BDArenaConnector getInstance] requestAuth];


    [self.window makeKeyAndVisible];

    return YES;


Everything done!

Your application is now ready to create online multiplayer challenges and chat rooms!




Sample project

Download the sample project for this tutorial [Objective-C | Swift].