swift-unity icon indicating copy to clipboard operation
swift-unity copied to clipboard

Crash on press 'Start Unity' button

Open dhruvmodhapp opened this issue 6 years ago • 1 comments

I am getting a crash on the press 'Start Unity' button.

2019-10-17 12:46:08.652612+0530 SwiftTuto[572:45459] *** Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'

Does anyone have a solution for this?

Screenshot 2019-10-17 at 12 50 19 PM

dhruvmodhapp avatar Oct 17 '19 07:10 dhruvmodhapp

The error is right there: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'

If your Swift project uses 'UIAlertView', you need to change it for 'UIAlertController'. If your Unity project have a dependency that uses UIAlertView, maybe you need to contact the developer/support of that dependency.

linkalex3000 avatar Nov 14 '19 19:11 linkalex3000