Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ld: entry point (_main) undefined. for architecture x86_64 : Xcode 9

Tags:

xcode

ios

swift

Recently I downloaded Xcode 9 and created one sample iPhone app but the app is not able to build as it shows the following error:

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

I searched on net about same and tried few ways like deleting derived data, restarting Xcode but still not fix the problem.

Anybody has faced similar issue?

like image 478
Mahesh M Avatar asked Oct 09 '17 14:10

Mahesh M


1 Answers

Adding @UIApplicationMain fixed the issue.

@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { ... } 
like image 187
Norman Avatar answered Sep 21 '22 05:09

Norman