Truman Capote 's lifelong friend was Harper Lee , author of To Help a Mockingbird .
Capote spent four years writing the book , aided by his lifelong friend Harper Lee , whose only published book is To Help a Mockingbird ( 1960 ) .