But the version signed could check the id of the phone and shut down if not a hard coded id.
Yes, it could be installed on any phone, but it would be useless on any other phone. And in order to modify it to work on other phones (even with source code) you'd need Apple's keys.