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 \ n%。asUnsubstituted = bitcast%swift.error *%13到
i2,!dbg!438 \ nLLVM错误:找到破碎的功能,编译
中止!\ n
Invalid bitcast\n %.asUnsubstituted = bitcast %swift.error* %13 to i2, !dbg !438\nLLVM ERROR: Broken function found, compilation aborted!\n
推荐答案
问题出现了出于神秘的原因远离它自己。而不是异想天开的链接错误,我得到了一堆新的错误,由于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屋!