What exactly are the problem and the solution?
North Korea was able to get nuclear weapons because we didn't want the carnage of artillery bombardment to Seoul that would have been the retaliation, had we stopped them.
Iran was close to achieving that same thing with ballistic missile bombardment of Europe.
The problem is that Iran, unlike NK, is run by a fanatical death cult with stated goal of attacking United States and history of running proxy militias in every nearby failed state, in a neighborhood that has no shortage of failed states.
Permanently disarming Iran, and creating conditions favorable to the fall of the Islamist terrorist regime that has been bullying the Mideast since 1979.