Swift Constromeor错误 - 排空时 SIL 为了 'tableView' at
使用 Xcode 6 Beta 5.
我正在创造 tableviewcontroller, 这几行代码不会编译。
这是一个编译错误:
</unknown></unknown>
我正在创造 tableviewcontroller, 这几行代码不会编译。
func tableView/tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!/ -> UITableViewCell!
{
let cell : OrderHistoryCell = tableView.dequeueReusableCellWithIdentifier/"CellForOrderHistory", forIndexPath: indexPath/ as OrderHistoryCell
var orderHistoryDataModel: OrderHistoryDataModel = self.orderItemsArray[indexPath.section][indexPath.row - 1] as OrderHistoryDataModel
cell.nameLabel.text = orderHistoryDataModel.orderItem.title
cell.statusLabel.text = orderHistoryDataModel.shipment.shippingStatus.toRaw//
let imageData: NSData = NSData/contentsOfURL: orderHistoryDataModel.orderItem.imageURL/
cell.thumbnailImageView.image = UIImage/data: imageData/
return cell
}
这是一个编译错误:
CompileSwift normal x86_64 com.apple.xcode.tools.swift.compiler
........ ............
Stack dump: ....... ........
intermediates/newProject.build/Debug-iphonesimulator/newProject.build/Objects-
normal/x86_64/OrderHistoryViewController.o
1. While emitting SIL for 'tableView' at /Users/testuser/Downloads/newProject/newProject/OrderHistoryViewController.swift:131:5
<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-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc
failed with exit code 254
</unknown></unknown>
没有找到相关结果
已邀请:
2 个回复
知食
赞同来自:
你有
大规模阵列
.
Xcode 从中获取对象时无法理解对象的类型 2 阵列同时
.
要修复它 - 指定对象的类型
通过以下方式
您也可以尝试获得一个对象 2 阶段。 更改此代码
就此:
还清洁项目并删除文件夹 DerivedData.
裸奔
赞同来自:
在我的情况下,我在我的模型中有这样的东西
A B. cellForRow G。/_/
在我的情况下,它很容易修复。 而不是制作 bool 隐含地扩展财产,我只是为他分配一个值 false 默认。 他仍然安装在初始化程序中。