Every company deserves a “monopoly” on their own product, unless they are a common carrier, a designation which is based on the government enabling them to exist through preferential treatment in the first place.
Apple created the Apple iPhone and they should be allowed to determine its destiny, as long as other companies are also allowed a fair shot to create their own competing devices.
Why?
Obviously hardware third party components without Ford's permission is a well established industry. Nobody questions it, except maybe a few lunatic capitalists like Elon Musk. Even then though, I think people like him keep their head on straight for the most part. They don't do much to facilitate it, but if you started selling compatible hardware components for his cars, I doubt they'd actually consider trying to stop you. (If I'm wrong about that, he's worse than I thought.)
Your supposition is that software components should be a special case, unlike hardware components, where companies have a right to deny anybody else the right to produce components without their permission. I say that's bullshit. They should be legally forbidden from creating products for which third party components can only exist if given permission.