Actually When I run my iOS app and it’s get black screen like this . I deleted scene delegate file and function from appdelegate but it’s still shows black screen . Any Idea??
2
you need to follow 2 steps :
2.Check your minimum iOS target is 13 or not if 13.0 then you can change it to 11.0
Hope your issue will resolve using this 2 steps.
Step 1:- you need to remove the dependency of scene delegate from info.plist (follow Step show in above Ans of Dipak Ramoliya)
Step 2:- comment code in scene delegate file
step 3:- comment code related to scene delegate in App delegate file (connectingSceneSession method and sceneSessions method)
step 4:- Add window variable in AppDelegate file (var window: UIWindow?)
step 5:- create rootViewController in didFinishLaunchingWithOptions method in App Delegate
ex:-
let appDelegate = UIApplication.shared.delegate as! AppDelegate var rootVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "testController") as! TestController appDelegate.window?.rootViewController = testController
Click here to cancel reply.
2
Answers
you need to follow 2 steps :
2.Check your minimum iOS target is 13 or not if 13.0 then you can change it to 11.0
Hope your issue will resolve using this 2 steps.
Step 1:-
you need to remove the dependency of scene delegate from info.plist
(follow Step show in above Ans of Dipak Ramoliya)
Step 2:-
comment code in scene delegate file
step 3:-
comment code related to scene delegate in App delegate file (connectingSceneSession method and sceneSessions method)
step 4:- Add window variable in AppDelegate file (var window: UIWindow?)
step 5:- create rootViewController in didFinishLaunchingWithOptions method in App Delegate
ex:-