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.
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.