Undefined symbols for architecture i386:
"_main", referenced from:
start in crt1.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-
解决办法:检查Build Phases, Compile Sources是不是少元素,尤其是 Supporting Files/main.m
本文解决iOS开发中遇到的Undefinedsymbolsforarchitecturei386错误,通过检查BuildPhases、CompileSources等部分,确保代码正确引用和支持文件存在。

6万+

被折叠的 条评论
为什么被折叠?



