I have very strange problem with Int64 on 32 bit devices. Sample code:
for i in 0...fromLogEntries.count - 1 {
if let entryInputID = fromLogEntries[i].inputId?.int64Value {
if ( entryInputID == inputID ) {
logEntryToReturn = fromLogEntries[i]
indexToRemove = i
break
}
}
}
inputID is property of managed object and is set as Int64 in the model
@NSManaged public var inputId: NSNumber?
The conversion to Int64 is causing the memory to go from 100mb to 500-600 and crash. On 64 bit devices there is no problem at all and no memory increase.