iAd无法及时恢复导致App崩溃

发布于 2024-09-19 12:02:33 字数 2294 浏览 2 评论 0原文

当我没有 iAds 时,我的应用程序运行良好。一旦我显示 iAd,系统就会关闭我的应用程序,因为 iAd 无法及时恢复。

我该如何解决这个问题?

Elapsed total CPU time (seconds): 1.380 (user 0.880, system 0.500), 14% CPU 
Elapsed application CPU time (seconds): 0.000, 0% CPU

Thread 0:
0   libSystem.B.dylib               0x00000c98 mach_msg_trap + 20
1   libSystem.B.dylib               0x00002d64 mach_msg + 44
2   AppSupport                      0x0001009e CPDMMessage + 158
3   AppSupport                      0x0000f3e4 -[CPDistributedMessagingCenter _sendMessage:userInfoData:oolKey:oolData:makeServer:receiveReply:nonBlocking:error:] + 848
4   AppSupport                      0x0000ed76 -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:nonBlocking:] + 618
5   AppSupport                      0x0000deba -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:] + 58
6   AppSupport                      0x0000e08e -[CPDistributedMessagingCenter sendMessageName:userInfo:] + 34
7   iAd                             0x00012bcc -[ADSession sendMessageName:userInfo:] + 100
8   iAd                             0x00013cfe -[ADSession open] + 22
9   iAd                             0x000065c2 -[ADBannerView sessionDidBecomeAvailable:] + 38
10  iAd                             0x00014d60 -[ADSessionManager considerCreatingSessions] + 416
11  iAd                             0x00014a42 __-[ADSessionManager sessionForRecipient:]_block_invoke_1 + 34
12  libSystem.B.dylib               0x000d597c _dispatch_call_block_and_release + 12
13  libSystem.B.dylib               0x000d69f4 _dispatch_main_queue_callback_4CF + 212
14  CoreFoundation                  0x00027894 __CFRunLoopRun + 1328
15  CoreFoundation                  0x00027270 CFRunLoopRunSpecific + 224
16  CoreFoundation                  0x00027178 CFRunLoopRunInMode + 52
17  GraphicsServices                0x000045ec GSEventRunModal + 108
18  GraphicsServices                0x00004698 GSEventRun + 56
19  UIKit                           0x0000411c -[UIApplication _run] + 396
20  UIKit                           0x00002128 UIApplicationMain + 664
21  StockTwits                      0x00002c5c main (main.m:14)
22  StockTwits                      0x00002c2c start + 32

My app runs fine when I don't have iAds. As soon as I display an iAd the system shuts down my app because the iAd can't resume in time.

How do I resolve this?

Elapsed total CPU time (seconds): 1.380 (user 0.880, system 0.500), 14% CPU 
Elapsed application CPU time (seconds): 0.000, 0% CPU

Thread 0:
0   libSystem.B.dylib               0x00000c98 mach_msg_trap + 20
1   libSystem.B.dylib               0x00002d64 mach_msg + 44
2   AppSupport                      0x0001009e CPDMMessage + 158
3   AppSupport                      0x0000f3e4 -[CPDistributedMessagingCenter _sendMessage:userInfoData:oolKey:oolData:makeServer:receiveReply:nonBlocking:error:] + 848
4   AppSupport                      0x0000ed76 -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:nonBlocking:] + 618
5   AppSupport                      0x0000deba -[CPDistributedMessagingCenter _sendMessage:userInfo:receiveReply:error:toTarget:selector:context:] + 58
6   AppSupport                      0x0000e08e -[CPDistributedMessagingCenter sendMessageName:userInfo:] + 34
7   iAd                             0x00012bcc -[ADSession sendMessageName:userInfo:] + 100
8   iAd                             0x00013cfe -[ADSession open] + 22
9   iAd                             0x000065c2 -[ADBannerView sessionDidBecomeAvailable:] + 38
10  iAd                             0x00014d60 -[ADSessionManager considerCreatingSessions] + 416
11  iAd                             0x00014a42 __-[ADSessionManager sessionForRecipient:]_block_invoke_1 + 34
12  libSystem.B.dylib               0x000d597c _dispatch_call_block_and_release + 12
13  libSystem.B.dylib               0x000d69f4 _dispatch_main_queue_callback_4CF + 212
14  CoreFoundation                  0x00027894 __CFRunLoopRun + 1328
15  CoreFoundation                  0x00027270 CFRunLoopRunSpecific + 224
16  CoreFoundation                  0x00027178 CFRunLoopRunInMode + 52
17  GraphicsServices                0x000045ec GSEventRunModal + 108
18  GraphicsServices                0x00004698 GSEventRun + 56
19  UIKit                           0x0000411c -[UIApplication _run] + 396
20  UIKit                           0x00002128 UIApplicationMain + 664
21  StockTwits                      0x00002c5c main (main.m:14)
22  StockTwits                      0x00002c2c start + 32

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

相权↑美人 2024-09-26 12:02:37

唉,这是 iAds 的一个错误。尚未确认解决方法。假设在 4.2 中修复,没有说明是否需要 4.2 SDK,或者是否需要用户升级。

https://devforums.apple.com/message/309701

Sigh, it's a bug with iAds. No confirmed work around yet. Supposed fix in 4.2, no word if it's the 4.2 SDK that's required or if users will be required to upgrade.

https://devforums.apple.com/message/309701

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文