Fixed wrong usage of $tmpFile in Swift backend

Change-Id: I21293be38c53b4dca3030c26a201f70d8ed243f3
Merge "Fixed wrong usage of $tmpFile in Swift backend"