[iOS] Dev Menu crashes iPad Simulator on 0.36 (UIAlertControllerStyleActionSheet exception)
See original GitHub issueIssue 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:
- Created 7 years ago
- Reactions:13
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please, release a 0.36.1 with this: https://github.com/facebook/react-native/commit/fd554c31c7bcb2aae5c7d6a64e5bef9bedf56ebb
/cc @mhorowitz @frantic
Thx for the fast fix. I’ll close this issue.