TVs use infrared receptors for their remote signals, and iPhones don't have an infrared emitter. That means that there has to be some kind of interface between the phone's output (wireless network or Bluetooth) that would convert the phone's signal to infrared. It can be done, but not without the interface.