question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Dev Menu crashes iPad Simulator on 0.36 (UIAlertControllerStyleActionSheet exception)

See original GitHub issue

Issue Description

In current stable everything works like expected - after updating to 0.36 Dev Menu fails in Simulator. Reverting to current stable fixes it.

I get the following crashlog:

*** Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController (<UIAlertController: 0x7fd5e34b2f40>) of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem.  If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.'
    *** First throw call stack:
    (
        0   CoreFoundation                      0x000000010df2bd85 __exceptionPreprocess + 165
        1   libobjc.A.dylib                     0x000000010d55edeb objc_exception_throw + 48
        2   UIKit                               0x0000000110629396 -[UIPopoverPresentationController presentationTransitionWillBegin] + 3407
        3   UIKit                               0x000000010fdbff44 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 2035
        4   UIKit                               0x000000010fdbdb76 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 309
        5   UIKit                               0x000000010fc5bf62 _runAfterCACommitDeferredBlocks + 317
        6   UIKit                               0x000000010fc6fe4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 95
        7   UIKit                               0x000000010fc7c147 _afterCACommitHandler + 90
        8   CoreFoundation                      0x000000010de50c37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
        9   CoreFoundation                      0x000000010de50ba7 __CFRunLoopDoObservers + 391
        10  CoreFoundation                      0x000000010de467fb __CFRunLoopRun + 1147
        11  CoreFoundation                      0x000000010de460f8 CFRunLoopRunSpecific + 488
        12  GraphicsServices                    0x0000000113e2ead2 GSEventRunModal + 161
        13  UIKit                               0x000000010fc4ff09 UIApplicationMain + 171
        14  MyApp                            0x000000010b67ee0f main + 111
        15  libdyld.dylib                       0x000000011189192d start + 1

Steps to Reproduce / Code Snippets

Launch APP in Simulator, Press CMD + D or Shake Gesture => CRASH

Additional Information

  • React Native version: v0.36.0-rc.1
  • Platform(s) (iOS, Android, or both?): iOS
  • Operating System (macOS, Linux, or Windows?): macOS

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:13
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
neikercommented, Oct 27, 2016
1reaction
K-Leoncommented, Nov 2, 2016

Thx for the fast fix. I’ll close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simulator crashes immediately upon launch - Apple Developer
I have run the XCode 9 simulator and reset simulator. I have "installed" XCode ... Crashed Thread: 0 Dispatch queue: com.apple.main-thread. Exception Type: ......
Read more >
ActionSheet crash on iPad | Apple Developer Forums
I would like to present an action sheet on iPad using SwiftUI, but it crashes with the following error: Terminating app due to...
Read more >
iOS 14 simulators crashing & r… | Apple Developer Forums
My iOS 14 simulators are constantly crashing/rebooting. Console shows a crash inside "NRPairedDeviceRegistry waitForPairingStorePathPairingID" whereas Xcode ...
Read more >
Simulator crashing with iOS < 1… | Apple Developer Forums
I can no longer run my app in the simulator with a version lower than iOS14. I tried iOS12, iOS12.4, iOS13.7 and they...
Read more >
Application crashes on simulator after update Monterey
Hi, I update mac Big Sur to Monterey Beta. After update my application not opens on iPhone Simulator (crashes immediately). And on xcode...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found