Joaco Llou
Joaco Llou

Reputation: 21

chartboost integration errors on xcode

I tried integrating chartboost into my app in xcode, using this code:

Chartboost *cb = [Chartboost sharedChartboost];

cb.appId = @"Y51071e9d17ba47414f000000";
cb.appSignature = @"51071e9d17ba47414f000000";

// Begin a user session
[cb startSession];

// Show an interstitial
[cb showInterstitial];

in applicationDidBecomeActive.

But I get this error:

Undefined symbols for architecture i386: "_OBJC_CLASS_$_Chartboost", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

What am I doing wrong, and what should I do?

Upvotes: 2

Views: 2969

Answers (1)

Edz
Edz

Reputation: 557

Yep you got it, make sure the chartboost library is added to your project and all frameworks are linked.

If you run into any more issues, take a look at the example project here: https://github.com/ChartBoost/client-examples

Upvotes: 1

Related Questions