I'd had a report from a user that my app opens up, gets to the launch screen, and then crashes. He's from portugal on a iPhone 5 running iOS8. Here's his crash log - http://justpaste.it/j36w
This is my first iOS app so I'm having trouble understanding this. I see the exception that caused the crash - EXC_BREAKPOINT (SIGTRAP), but I don't really understand how.
My first thought was it had something to do with localizing the strings, but he said his phone was in english. Any ideas?
Edit: http://justpaste.it/j3jy
Edit2:
func createBarArray(townName: String, dict: NSDictionary) -> NSMutableArray{
var barArray = dict[townName] as NSArray
var bars = [] as NSMutableArray
// Get day of the week
let dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "EEEE"
let dayOfWeekString = dateFormatter.stringFromDate(NSDate())
for bar in barArray{
var name = bar["name"] as NSString
var dealsArr = bar[dayOfWeekString] as NSArray
var deal = dealsArr[0] as NSString
var lat = bar["lat"] as Double
var long = bar["long"] as Double
var negLong = -long
var newBar = BarAnnotation(latitude: lat, longitude: negLong, name: name, deal: deal)
switch(townName){
case "amesBars":
newBar.town = "Ames"
case "cedarFallsBars":
newBar.town = "Cedar Falls"
case "iowaCityBars":
newBar.town = "Iowa City"
default:
newBar.town = ""
}
bars.addObject(newBar)
}
return bars
}