The problem is resolved by creating the project switching from using SwiftUI to storyboard. Then manually remove the storyboard references.