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

查看:19
本文介绍了带有 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天全站免登陆