Iranian goalkeeper Alireza Beiranvand's save to deny Ronaldo was the fifth instance of a player failing to convert a penalty in Russian Federation, already the joint second highest in World Cup history.
Substitute Iago Aspas scored in stoppage-time to earn Spain a point against the North Africans which gave them top spot in Group B and a knockout game next against hosts Russian Federation.
The African side secured their only point of the tournament with a 2-2 draw against Spain here on Monday.
Portugal will face Uruguay, which took the top spot from Russian Federation in a 3-0 win earlier Monday.
Portugal were on course to qualify as group winners going into added time after Ricardo Quaresma's stunning first-half goal had given them the lead over Iran.
Oppo debut flagship Find X smartphone with nearly no-bezels
There is only the USB Type-C Port, and that's present on the bottom, along with the SIM card tray and the speaker grill. The dual rear camera setup includes a 16-megapixel primary sensor and a 20-megapixel secondary sensor with OIS.
"Obviously we can improve and there are things we definitely need to work on".
Iran equalised late on after Paraguayan referee Enrique Caceres used the video assistant referee (VAR) system to rule that Portugal's Cedric Soares had handled the ball in the box.
The whole group changed within 30 seconds as Iran were awarded a penalty following lengthy consultation with VAR, while Aspas fired Spain to the top of the table.
In Brazil four years ago, as defending champion, Spain didn't progress from its group. The previous holder of the record for Portugal was Cristiano Ronaldo (33 years, 135 days), when he scored the victor against Morocco.
"We have achieved our goal and now we have to recover over the next few days to think about the next match", Quaresma told reporters.
Future ‘A Star Wars Story’ Spinoffs on Hold at Lucasfilm
Rian Johnson's " Star Wars " trilogy is reportedly unaffected by the hold on "A Star Wars Story " spinoff movies. It may be a while before we see any more movies like Solo: A Star Wars Story out of Lucasfilm .
"We know the difficulties we're going to have against Uruguay".
"We've showed that we can take on two of the best teams in the world, Portugal and Spain".
Morocco boss Herve Renard, whose side finished bottom of the group on one point having also lost 1-0 to Iran and Portugal, saw them collect six yellow cards in this match.
"It's such a big disappointment for us", Iran midfielder Alireza Jahanbakhsh said.
At about noon on Monday Portugal players had a quick walk around the hotel, but it is uncertain whether they will walk around the city as they did before other matches in Russian Federation.
Brazil 1 - 1 Switzerland: Neymar Wants Protections From Referees
The Antalyaspor defender, though, accepts the calibre of opponent Switzerland faces against Brazil makes its opening task hard . They made a strategy based on avoiding Neymar develop his game, tackling him when he received the ball.