我的应用程序(仅限 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/