fixed issue when coredata files cased build failture

Fixed issue when coredata files cased build failture
Why not save `filter(lambda x: x['isa'] == build_phase_name, self.target['buildPhases'])` in a temporary so it doesn't have to get evaluated twice?