美文网首页
ld: entry point (_main) undefine

ld: entry point (_main) undefine

作者: Monkey_Hou | 来源:发表于2020-05-21 11:15 被阅读0次

新建一个项目工程后,运行报如上错误
解决办法一:Build Settings ->搜索 Mach-O Type -> 将值改为Bundle
能够解决,但是后续出现问题,运行项目Could not attach to pid :***
于是寻找另一种解决办法:
解决办法二:这种方法应该是正确的方法
在appdelegate中添加@UIApplicationMain

相关文章

网友评论

      本文标题:ld: entry point (_main) undefine

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