entry point (_main) undefined. for architecture x86_64

报错如下:

“ld: entry point (_main) undefined. for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)”

解决办法:

  1. Select your Project
  2. Go to Target -> Select your Test target
  3. then go to Build Setting -> Search Mach-O Type
  4. Change to -> Bundle

good luck!

猜你喜欢

转载自blog.csdn.net/three_zhang/article/details/80606504