if it's a DSP head unit you have with the carver amp in the boot. no aftermarket head unit will work unless you get a custom made lead or keep the original head unit and hide it or hide the new head unit as well so you need both plugged in essentially.
I'm currently in the process of trying to get a custom lead made. I spoke to a local indy and they are on the case for me.
I have the top of the range OEM sound system with DSP and CARVER and they couldn't fit a new head unit because of this.
However there are these
http://www.ebay.co.uk/itm/Bluetooth-Music-Handsfree-MP3-CD-changer-adapter-BMW-E39-E83-E53-E85-Business-CD-/111685007449?hash=item1a00f1f859:g:HeIAAOSwpDdVbH08
http://www.ebay.co.uk/itm/Bluetooth-MP3-CD-Changer-Adapter-USB-AUX-Extension-Cable-for-BMW-E85-E52-/121766936532?hash=item1c59dfffd4:g:wPwAAOSwDNdVtglz
that plug into the centre inbetween both seats where the CD changer is. however it replaces the CD changer if you have one which is a PITA to remove and a big job I believe.