iAd可在模拟器上运行,但不能在设备上运行 [英] iAd works on simulator but not on device
问题描述
我正在使用iAd更新应用.当前版本具有iAd,并且一切正常.但是更改已经足够重大,我想在提交更新之前再次测试广告.
I am updating an app with iAd. The current version has iAd, and everything works great. But the changes have been substantial enough that I want to test the ads again before I submit the update.
当我在模拟器上测试iAd时,我毫无问题地获得了测试广告.当我尝试在设备上进行测试时,得到的只是对didFailToReceiveAdWithError的调用.错误的描述为:
When I test iAd on the simulator, I get the test advertisement with no problem. When I try to test it on the device, all I get are calls to didFailToReceiveAdWithError. The descriptions of the error are either:
操作无法完成.广告资源不可用."
"The operation couldn't be completed. Ad inventory unavailable."
或:
操作无法完成.未知错误."
"The operation couldn't be completed. Unknown error."
鉴于此,我如何确定广告将在更新后的应用程序中正常显示?
In light of this, how can I make sure the ads will work in the updated app?
推荐答案
我处理了大约9小时的未知错误"消息.对我来说,我的iPod touch已重置为1970.日期被推迟了.我从不费心将它重新设置,因为我不经常使用它.将日期设置为当前日期后,该设置和其他设置将开始正常运行(应用内购买也被搞砸了).
I dealt with the "Unknown error" message for close to 9 hours. For me, my iPod touch had reset itself to 1970. I accidentally let the battery drain and the time & date got set back. I never bothered to set it back because I don't use that often. Once I set the date to the current date, that and other things began to work correctly (in-app purchases were also screwed up).
这篇关于iAd可在模拟器上运行,但不能在设备上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!