ios - 应用程序在 UIPopoverPresentationController 中崩溃但没有显式弹出窗口?

标签 ios crash in-app-purchase ios8 popover

我的应用程序(仅限 iOS 8)在尝试 IAP 时由于崩溃而被拒绝。我已经在 AdHoc 构建中尝试了几乎所有购买过程的咒语,但无法重现崩溃。查看审查小组附加的崩溃日志,我在最后一个异常回溯中看到了一个非常奇怪的堆栈跟踪。崩溃看起来涉及 UIPopoverController,但是我的应用程序虽然通用,但不会在任何地方显式或隐式显示弹出窗口。有谁知道什么可能触发导致这次崩溃的事件?什么可能导致我的应用在审查团队只查看时显示弹出窗口?

Last Exception Backtrace:
0   CoreFoundation                0x186d52084 __exceptionPreprocess + 132
1   libobjc.A.dylib               0x1977a40e4 objc_exception_throw + 60
2   UIKit                         0x18bc0aee0 -[UIPopoverPresentationController presentationTransitionWillBegin] + 2464
3   UIKit                         0x18b7d27d8 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 1324
4   UIKit                         0x18b7d1310 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 212
5   UIKit                         0x18b557388 _applyBlockToCFArrayCopiedToStack + 356
6   UIKit                         0x18b4c8e4c _afterCACommitHandler + 532
7   CoreFoundation                0x186d0a388 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
8   CoreFoundation                0x186d07314 __CFRunLoopDoObservers + 360
9   CoreFoundation                0x186d076f4 __CFRunLoopRun + 836
10  CoreFoundation                0x186c35664 CFRunLoopRunSpecific + 396
11  GraphicsServices              0x18fd435a4 GSEventRunModal + 168
12  UIKit                         0x18b53a984 UIApplicationMain + 1488

最佳答案

不确定它是否与原始问题的原因相同,但我有完全相同的错误,问题是使用具有 ActionSheet 样式的 UIAlertController,在 iPhone 上显示它工作正常但 iPad 需要设置 sourceview - https://stackoverflow.com/a/24233937/285694

关于ios - 应用程序在 UIPopoverPresentationController 中崩溃但没有显式弹出窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26019660/

相关文章:

ios - iOS防火墙应用程序

释放包含滚动 UITableView 的 View Controller 时,iPhone 应用程序崩溃

ios - 我的应用程序在 xcode 中崩溃,但没有此异常的堆栈跟踪

java - 为什么我在测试自动更新订阅的苹果沙盒服务器的回复中得到 21004 作为状态值?

iphone - 检测 "Confirm Your In-App Purchase"UIAlert 的取消按钮点击

iOS 10 : How to repeat local notification once fired on particular date?

ios - 如何将 AVAudioEngine 连接到 Lightning 端口音频输入?

ios - Erica Saduns iPhone Developers Cookbook (3.0) 第 8 章,练习 14 — 调整大小和旋转

iphone - 防止应用程序崩溃

android - 如何在依赖于应用程序帐户而不是 Google Play 帐户的应用程序购买中实现