Econ professor here.
Nobody likes paying higher prices for iPhones, but here's another perspective:
The base iPhone has had the same $799 MSRP since the iPhone 12 in 2020. (The iPhone 11 started at $699.)
The iPhone Pro has had the same $999 MSRP since the iPhone 11 Pro in 2019. Before that, there were no phones named "iPhone Pro," but the iPhone X (2017) and iPhone XS (2018) were the "Pro" iPhones of their time, and their MSRP's were $999 each.
During all these years, production costs have risen. And you'll remember that the pandemic disrupted supply chains in 2020-2022, and most other goods with semiconductor chips experienced shortages and/or big price increases.
Thanks to inflation, the $999 we paid for the iPhone 16 Pro last year was a lot cheaper in purchasing power terms than the $999 we paid for the iPhone 11 Pro in 2019.
If Apple raises prices of the iPhone 17 models by $50 each, they will still be cheaper in purchasing power terms than the iPhone 12 through iPhone 15 models.