I'm getting the error: "entry point (_main) undefined. for architecture armv7" when I try to archive my app.

Basically what the title says. The game run fine in the simulator and on devices I run it on, but when I try to archive it, it fails, giving the error "entry point (_main) undefined. for architecture armv7".
Another warning that seems like it might be related is "Ignoring file /Users/kyeemond/Desktop/IOS Export/Hill_Bounce.a, missing required architecture armv7 in file /Users/kyeemond/Desktop/IOS Export/Hill_Bounce.a (2 slices)"


I'm getting the error: "entry point (_main) undefined. for architecture armv7" when I try to archive my app.
 
 
Q