skip to Main Content

not sure what to do. i keep getting this message "ld: entry point (_main) undefined. for architecture arm64" I am unsure if it has to do with my process but I have a Mac M1 chip for my laptop.
any help is appreciated.

3

Answers


  1. Add this to your project and target.

    enter image description here

    Login or Signup to reply.
  2. It can happen when you unlink your AppDelegate from your app’s target (it happened to me due to some bad conflict resolution). It also can mean that for some other reason @main attribute disappeared from your AppDelegate‘s class.

    Login or Signup to reply.
  3. I hit this error while Archiving.

    After some trial-and-error I discovered that this terribly confusing error was actually caused by my deleting Preview Content/Preview.xcassets

    Restoring the folder + catalogue (and correcting the reference in Build Settings) resolved the issue for me.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search