我尝试使用以下代码将 chartboost 集成到我在 xcode 中的应用程序中:
Chartboost *cb = [Chartboost sharedChartboost];
cb.appId = @"Y51071e9d17ba47414f000000";
cb.appSignature = @"51071e9d17ba47414f000000";
// Begin a user session
[cb startSession];
// Show an interstitial
[cb showInterstitial];
在 applicationDidBecomeActive
中。
但是我得到这个错误:
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)
我做错了什么,我该怎么办?
最佳答案
是的,您知道了,请确保将 chartboost 库添加到您的项目中,并且所有框架都已链接。
如果您遇到更多问题,请查看此处的示例项目:https://github.com/ChartBoost/client-examples
关于ios - xcode 上的 chartboost 集成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14574547/