美文网首页
使用他人工程出现的bug:ld: entry point (_m

使用他人工程出现的bug:ld: entry point (_m

作者: KYM1988 | 来源:发表于2019-05-16 09:17 被阅读0次

该文只是用于记录碰到的问题和解决方法方便下次查找,不喜勿喷!

近期在cocoachina上下了项目看看使用出现一个问题:

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

clang: error: linker command failed with exit code 1 (use -v to see invocation)”

找到的第一种方法是:

Build Phases ->Compile Sources 中添加appdelegte 和main.m,没有解决该问题;

第二种方法:

Build Settings -> Mach-O Type ->Bundle(选用该项)

解决问题,感谢。

原文:https://blog.csdn.net/three_zhang/article/details/80606504

相关文章

网友评论

      本文标题:使用他人工程出现的bug:ld: entry point (_m

      本文链接:https://www.haomeiwen.com/subject/blhbaqtx.html