When I try to add a new calendar, the project crashed. This is the source part that occurs error. newCalendar.source = sourcesInEventStore.filter{ (source: EKSource) -> Bool in source.sourceType.rawValue == EKSourceType.local.rawValue }.first!