我在xcode 5.0和iPhone Simulator7.0中运行我的应用程序。应用程序成功执行与admob中介sdk集成。当我在xcode 5.0和iPhone模拟器6.0中运行它时崩溃的同一个应用程序。并尝试没有admob中介集成它成功执行。我在“其他链接标志”中添加了-ObjC。
日志是:
我该怎样解决这个问题?
编辑:
我添加了@iDev告诉的所有框架。并显示日志:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'ADBannerView must be part of a view hierarchy managed by a UIViewController'
*** First throw call stack:
(0x3466052 0x2c59d0a 0xc929e5 0x1b9783e 0x1b93c72 0x1b98a4f 0x1b9272b 0x1eb9e9 0x1f1849 0x1eff76 0x1ff17c 0x1b8acf 0xc9309a 0xc90705 0x3467e72 0xc9eca1 0xca14be 0xca2058 0x2eeb3ec 0x2eed515 0x339d833 0x339cdb4 0x339cccb 0x3cc1879 0x3cc193e 0x1b5ba9b 0xa1d56 0x2f45 0x1)
terminate called throwing an exception(lldb)
答案 0 :(得分:0)
要在您的应用中包含iOS的AdMob中介:
1. Add the libAdapterSDKAdfonic.a library to your project and ensure it is listed in the target's Link Binaries Build Phase. 2. Add the following additional frameworks to your target's Link Binaries Build Phase :
CoreLocation.framework
MediaPlayer.framework
QuartzCore.framework
SystemConfiguration.framework
CoreTelephony.framework (If your app supports iOS versions before 4.0, you can add this as an optional framework.)
EventKit.framework
MessageUI.framework
CoreMotion.framework
libsqlite3.a
libz.a
MobileCoreServices.framework
CFNetwork.framework