我是 Xcode 和 Swift 的新手。我只是尝试使用 swift 语言创建 UITest。当我尝试运行仅打印“Hello world”的简单测试时,我发现此构建失败并出现错误::
"ld: entry point (_main) undefined. for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)"
有人遇到同样的问题吗?如果您能分享修复方法,我将不胜感激。顺便说一句,我正在使用 Xcode 9.1 和 Swift 4
最佳答案
关于swift - UITest 失败并出现错误 'ld: entry point (_main) undefined. for architecture x86_64',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49202360/