How do I fix the error on erased SceneDeleate related with UIKit?

18 Views Asked by At

At first, Xcode always been terminated with the error related with EnvironmentObject. To utilize EnvironmentObject on Xcode, I created SceneDelegate.swift since my project didn't contain it. Then it works, but another error occurs.

enter image description here

To avoid this error, I deleted not only SceneDelegate.swift but also the properties on info.plist. Anyway EnvironmentObject is still working, but the error is shown on the screenshot still appears. Even the error is still showing on the log, the project is working properly as my expectation. Does anyone know any solution to fix this error? This is pretty weird the error still showing even I deleted SceneDelegate file.

0

There are 0 best solutions below