我已经集成了来自https://answers.chartboost.com/hc/en-us/articles/201220095-iOS-Integration的所有图表增强
但我在chartboost.h文件中不断收到这18个错误。http://i.stack.imgur.com/s7Xek.png
我不确定我的AppDelegate.swift是否正确地集成了swift?
class AppDelegate: UIResponder, UIApplicationDelegate, ChartboostDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let kChartboostAppID = "559f1b52c909a64f054eb563";
let kChartboostAppSignature = "41ad09b1bd90bbf3b3712d9530f45daff3fbd04f";
Chartboost.startWithAppId(kChartboostAppID, appSignature: kChartboostAppSignature, delegate: self)
Chartboost.setShouldRequestInterstitialsInFirstSession(false)
return true
}
func showChartboostAds()
{
Chartboost.showInterstitial(CBLocationHomeScreen);
}
func didFailToLoadInterstitial(location :String!, withError error: CBLoadError)
{
}
func didDismissInterstitial(location :String! )
{
if(location == CBLocationHomeScreen)
{
Chartboost.cacheInterstitial(CBLocationMainMenu)
}
else if(location == CBLocationMainMenu)
{
Chartboost.cacheInterstitial(CBLocationGameOver)
}
else if(location == CBLocationGameOver)
{
Chartboost.cacheInterstitial(CBLocationLevelComplete)
}
else if(location == CBLocationLevelComplete)
{
Chartboost.cacheInterstitial(CBLocationHomeScreen)
}
}请帮帮我,我已经被困在这里好一阵子了,你能帮帮我吗?
发布于 2015-09-12 17:42:47
我也有同样的问题。我将整个Chartboost文件夹放入我的项目中,而不仅仅是框架。进入文件夹并删除ChartboostExample。其中有一个Xcode项目示例,它似乎会导致一些奇怪的事情发生。
https://stackoverflow.com/questions/31837240
复制相似问题