我最近升級到了Xcode 7.我的代碼在6.3和iOS 8.4上工作正常,現在不會編譯出現分段錯誤。iOS 9命令由於信號失敗:分段錯誤:11
我正在使用SQLite的Stephencelis庫。這似乎是造成這個問題。
我會感謝任何幫助,任何想法。 下面是錯誤味精的最後一部分:
- 雖然類型檢查在/Users/luben/Downloads/SQLite.swift-master/SQLite/Query.swift:740:22
- 爲COLUMNNAMES吸氣雖然類型檢查聲明0x7fbab3ee2d68在/Users/luben/Downloads/SQLite.swift-master/SQLite/Query.swift:740:51
雖然類型檢查表達式在[/Users/luben/Downloads/SQLite.swift -master/SQLite/Query.swift:740:51 - line:774:7] RangeText =「{ var(columnNames,idx)=(String:Int,0) column:for self in self.query.columns? ?[表達式(文字:「*」)] { let pair = each.expression.SQL.characters.split {$ 0 ==「。」} .map {String($ 0)} let(tableName,column)=(pair.count> 1? pair.first:無,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)" } } for name in names { columnNames[name] = idx++ } } } if column == "*" { let tables = [self.query.select(*)] + self.query.joins.map { $0.table } if let tableName = tableName { for 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
}()」