I'm not sure I understand this. I think I'm missing something so maybe you can help. I share code with friends all the time. Sometimes it's something small and I save it as a gist on github and sometimes it's something larger and I make an entire repo. I have also made tarballs and emailed them to people when necessary.
I take it all your friends are developers. Try sharing something you coded with non-developers on their devices that require app signing. It is not an easy operation.