2015-09-30 69 views
0

我最近升级到了Xcode 7.我的代码在6.3和iOS 8.4上工作正常,现在不会编译出现分段错误。iOS 9命令由于信号失败:分段错误:11

我正在使用SQLite的Stephencelis库。这似乎是造成这个问题。

我会感谢任何帮助,任何想法。 下面是错误味精的最后一部分:

  1. 虽然类型检查在/Users/luben/Downloads/SQLite.swift-master/SQLite/Query.swift:740:22
  2. 为COLUMNNAMES吸气虽然类型检查声明0x7fbab3ee2d68在/Users/luben/Downloads/SQLite.swift-master/SQLite/Query.swift:740:51
  3. 虽然类型检查表达式在[/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 
    

    }()”

回答

相关问题