US President Trump has stated that if Iran does not comply with the agreement, he will take necessary measures.