"uialertview is deprecated and unavailable for uiscene based applications, please use uialertcontroller" Code Answer

1

i was also going through the same issue, i'm able to solve it getting help from a developer, scene base application that is new yet not support ui alert view so it crashes the app, we can remove the scene base application we can use window base app, follow these steps to resolve the issue:

first remove the scenedelegate file check this image for first step second remove uiscenesession lifecycle two methods from appdelegate file check this image for second step third go to your info plist and remove application scene manifest entry from it check this image for third step go ahead and build the project, run it now, make sure you have window property in appdelegate

By Mono.WTF on April 7 2022

Answers related to “uialertview is deprecated and unavailable for uiscene based applications, please use uialertcontroller”

Only authorized users can answer the Search term. Please sign in first, or register a free account.