There was a time when Apple would use open source (and this website) as a marketing tool. Probably back in the Tiger/Leopard days. And they used to contribute their userland fixes to upstream BSD too. These days Apple doesn’t seem as committed to open sourcing of its core OS software as it once did.
They could open source everything but secret keys for cloud, secure enclave, secure booting, etc. It’s not like it would help knock-off iDevices or putting something other an iOS on an iDevice. Jailbreaking is almost dead and there hasn’t been much movement on making more system features having third-party plugins (ie iOS 11 Control Center Custom Controls).
Ideally, I’d like to see an opensource software and hardware phone with zero opaque binary firmware blobs, something that is independently verified by tearing apart, decapping and X-ray/microscope RTL verification. Security through crypto and the right eyeballs able to scrutinize end products with maximum information.
A true 100% open source phone (with optional isolated radio hardware to use a regular SIM) is an important step ahead... https://puri.sm/shop/librem-5/