ld: entry point (_main) undefined. for architecture arm64

I’m trying to build my Unity5.1 project in Xcode and I keep getting the above error.

I got around the issue by only building the project and opening it up manually with Xcode rather than using Build & Run which fails to launch Xcode anyways.