2

我尝试使用以下代码在 xcode 中将 chartboost 集成到我的应用程序中:

Chartboost *cb = [Chartboost sharedChartboost];

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

// Begin a user session
[cb startSession];

// Show an interstitial
[cb showInterstitial];

applicationDidBecomeActive.

但我得到这个错误:

架构 i386 的未定义符号:“_OBJC_CLASS_$_Chartboost”,引用自:AppDelegate.o ld 中的 objc-class-ref:未找到架构 i386 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v查看调用)

我做错了什么,我该怎么办?

4

1 回答 1

1

是的,你明白了,确保 chartboost 库已添加到你的项目中,并且所有框架都已链接。

如果您遇到更多问题,请查看此处的示例项目:https ://github.com/ChartBoost/client-examples

于 2013-01-30T08:38:58.803 回答