While it's possible to live comfortably in Barcelona knowing only Spanish, if you want to fully integrate into the local commiunity, Catalan is essential.
Catalan is the primary language of communication for many people in Barcelona and its surroundings. Therefore, Catalan is mandatory for job applications in many institutions.
Catalan will help you integrate into the community much more quickly, both personally and professionally.