The iPhone Pro Max retails for as much as the Samsung Galaxy Ultra, and only one of the two OEMs builds the application platform used by all its developers. What are these "giant profit margins" you're referring to?

Apple SEC report 2023, Q3: https://www.sec.gov/Archives/edgar/data/320193/0000320193240...

Net sales: $119575 billion, net income $33916. Margin: 28%

Sounds like they have pretty bad margins!