具有iAds的MonoTouch应用程序在模拟器上运行,在设备上崩溃 [英] MonoTouch app with iAds runs on simulator, crashes on device

查看:48
本文介绍了具有iAds的MonoTouch应用程序在模拟器上运行,在设备上崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个非常简单的单页应用程序,其中包含ADBannerView,在模拟器中正常运行时会在设备上崩溃.

A very simple one-page app that includes an ADBannerView crashes on the device whilst running fine in the simulator.

崩溃是从XIB构造主视图控制器的时候.

The crash is at the point of constructing the main view controller from the XIB.

错误如下:

"cannot decode object of class (ADBannerView)"

我想知道是否需要包括其他的MonoTouch组件?

I'm wondering if there is an additional MonoTouch assembly I need to include?

设备正在运行4.3.2和4.3 SDK.

The device is running 4.3.2 and the 4.3 SDK.

嗯,知道了-我必须添加以下标志(与目标操作系统版本无关)

ah, got it - I have to add the following flags (regardless of targeted OS version)

 -gcc_flags "-weak_framework iAd"

推荐答案

啊,明白了-我必须添加以下标志(无论目标操作系统版本如何)

Ah, got it - I have to add the following flags (regardless of targeted OS version)

 -gcc_flags "-weak_framework iAd"

所有这些都在MonoTouch 3.2.6 BTW中.我尚未在4.x中尝试过,但是当我这样做时,我将更新此问题.

This is all in MonoTouch 3.2.6 BTW. I haven't tried it in 4.x yet, but when I do I will update this issue.

这篇关于具有iAds的MonoTouch应用程序在模拟器上运行,在设备上崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆