swift - iOS 9 Command failed due to signal: Segmentation fault: 11 -
i upgraded xcode 7. , code working fine on 6.3 , ios 8.4 not compile segmentation fault.
i using stephencelis library of sqlite. seems causing problem.
i appreciate help, ideas. below last part of error msg:
- while type-checking getter columnnames @ /users/luben/downloads/sqlite.swift-master/sqlite/query.swift:740:22
- while type-checking declaration 0x7fbab3ee2d68 @ /users/luben/downloads/sqlite.swift-master/sqlite/query.swift:740:51
while type-checking expression @ [/users/luben/downloads/sqlite.swift-master/sqlite/query.swift:740:51 - line:774:7] rangetext="{ var (columnnames, idx) = (string: int, 0) column: each in self.query.columns ?? [expression(literal: "*")] { let pair = each.expression.sql.characters.split { $0 == "." }.map { string($0) } let (tablename, column) = (pair.count > 1 ? pair.first : nil, pair.last!)
func expandglob(namespace: bool) -> query -> void { return { table in var query = query(table.database, table.tablename.unaliased) if let columns = table.columns { query.columns = columns } var names = query.selectstatement.columnnames.map { quote(identifier: $0) } if namespace { names = names.map { "\(table.tablename.sql).\($0)" } } name in names { columnnames[name] = idx++ } } } if column == "*" { let tables = [self.query.select(*)] + self.query.joins.map { $0.table } if let tablename = tablename { table in tables { if table.tablename.sql == tablename { expandglob(true)(table) continue column } } assertionfailure("no such table: \(tablename)") } tables.map(expandglob(self.query.joins.count > 0)) continue } columnnames[each.expression.sql] = idx++ } return columnnames
}()"
the sqlite.swift project on github provides swift 2 branch. solves problem.
Comments
Post a Comment