Once Iran has the knowledge of how to successfully build a functional nuke, it’s too late. You can bomb all the sites you want, but you’ve only delayed them for a few years, if that. (While pissing them off and rallying the population around the imamocracy.)
It’s a lose-lose.