The general assessment on Iran has long been that they aim to become a nuclear threshold state (have the ability to make nuclear weapons quickly (~1y timeline or less) should they need to), but not actually acquire nuclear weapons for themselves.
...which is why we (used to) have the JCPOA. Attacking Iran will have no effect if they can mine uranium domestically and build centrifuges themselves.