entry point (_main) undefined. for architecture arm64

Hi,


I'm working on XCode 8, objective-c language.

I have an issue " Apple Mach-O Linker (Id) error ld:entry point (_main) undefined. for architecture arm64".

It appeared when I removed my "xcdataapp" file.


- My build phases are ok (all Link libraries I need and Compile sources have all my ".m" only once)

- I tried to remove my derived data and create it again, nothing happen

- I tried to turn on/off bitcode, nothing happen

- I did not modify my "apple delegate "


If you have any ideas!

Thank you by advance 🙂

entry point (_main) undefined. for architecture x86_64

same issue here just only in Xcode 13

entry point (_main) undefined. for architecture arm64
 
 
Q