Xcode 8.0 命令/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc 失败,退出代码为 1 [英] Xcode 8.0 Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
问题描述
当我在 Xcode Version 8.0 beta 4 (8S188o) 上编译我的代码时,我收到了一个导致编译失败的错误:
When I compile my code on Xcode Version 8.0 beta 4 (8S188o) I get this single error bringing the compilation to failure:
命令/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码 1
Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
我尝试清理项目并擦除派生文件夹,但这并没有改变.它是什么,我如何才能了解更多?
I tried to clean the project and wipe the derived folder but that did not change things. What is it and how may I know more about it?
当我尝试在终端上编译时,报告的错误是:
When I try to compile on the terminal the error being reported is:
无效的bitcast %.asUnpaid = bitcast %swift.error* %13 toi2, !dbg !438 LLVM 错误:发现损坏的函数,编译中止!
Invalid bitcast %.asUnsubstituted = bitcast %swift.error* %13 to i2, !dbg !438 LLVM ERROR: Broken function found, compilation aborted!
推荐答案
由于神秘的原因,问题自行消失了.由于应用程序编译并运行良好的 Swift 3 fling,我得到了一系列新的错误,而不是异想天开的链接错误.
The problem went away by itself for mysterious reasons. Instead of the whimsical linking error I got a new bunch of errors due to Swift 3 fling which the app compiles and run fine.
这篇关于Xcode 8.0 命令/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc 失败,退出代码为 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!