Testflight beta testing system & OpenFrameworks

Hi there,

I’m using testflight for deploying my new build to my beta testers but I want to use it for real now: using it for tracking crash report directly etc.

I used the ofxIphoneAppDelegate override explained here :

I included the .h from testflight, following their docs
I put my API token.

Everything compiles fine but I have no reports in my TestFlight dashboard :slight_smile:

anyone uses it ??

1 Like

Just for reference purpose, I wrote a small tuto about that:

I use TestFlight & I just put the TestFlight Launch code in testApp::setup and it seems to work, I see events from live apps in the store and in the sdk debugger. Not sure why if it’s supposed to be a done a different way.

Putting it in testApp::setup is just fine. Typically when you look through iOS tutorials, they have you put things in the AppDelegate call which is called when the app is setup. In OF, you can just put the obj-c code in setup() instead of having to modify the AppDelegate.

Hi Seth,
I want to use Testflight sdk with OF.
You said we can put the obj-c code in setup() instead of having to modify the AppDelegate. I did try it out, but I didn’t get it worked. Following is my code, can you tell me where is my wrong?

#include "testApp.h"  
#import "TestFlight.h"  
void testApp::setup(){  
-(BOOL)application:(UIApplication *)application   
                    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {  
                // start of your application:didFinishLaunchingWithOptions   
                // ...  
                [TestFlight takeOff:@"Insert your Team Token here"];  
                // The rest of your application:didFinishLaunchingWithOptions method  
                // ...  
//error Use of undeclared identifier  

1 Like

Hi bestpaul1985
Use [TestFlight takeOff:@“Insert your Team Token here”]; inside setup() method.
Not all the objective-c method inside setup() method.

1 Like

Thank you so much Dorald, it worked.