Fix compilation error in Swift machine template