小编use*_*687的帖子

Xcode swift失败,退出代码为254

我在我的代码中收到此编译器错误,我无法弄清楚原因:

<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 254
Run Code Online (Sandbox Code Playgroud)

错误显示在以下代码段中的某处:

var animalViewToSwap: AnimalView = animalViewMatrix.objectAtRow(0, andColumn: 0) as AnimalView
var currentRow = 0
var currentColumn = 0
var animalToSwapWith = true

var currentLocation = animalViewMatrix.findLocationOfObject(animalView)

currentRow = Int(currentLocation.row) - 1
currentColumn = Int(currentLocation.column) - 1

var rowDisplacement = 0
var columnDisplacement = 0

switch inDirection{

    case "left":
        columnDisplacement …
Run Code Online (Sandbox Code Playgroud)

xcode ios swift xcode6 ios8

14
推荐指数
2
解决办法
6350
查看次数

标签 统计

ios ×1

ios8 ×1

swift ×1

xcode ×1

xcode6 ×1