App is not building due to Command EmitSwiftModule failed with a nonzero exit code problem

306 Views Asked by At

I am new to Xcode and tried to build an app. I recently added a few of SwiftUI code into a storyboard app and it was running all well until today this problem suddenly appeared. Below is the code which is precisely shown :

/Users/amara/iCloud Drive (Archive) - 1/Documents/Documents - Amara’s MacBook Pro/Pomotivate/Pomotivate/PasswordChecker/NiceButtonApps.swift:10:1: error: 'main' attribute can only apply to one type in a module

@main ^ /Users/amara/iCloud Drive (Archive) - 1/Documents/Documents - Amara’s MacBook Pro/Pomotivate/Pomotivate/AppDelegate.swift:10:1: error: 'main' attribute can only apply to one type in a module @main ^ Command EmitSwiftModule failed with a nonzero exit code

I tried command shift k to remove project trash, deleted excess files and restarted my laptop but none works.

0

There are 0 best solutions below