I saw this referenced on a You Tube channel (made by a Spanish national who posts helpful stuff for travellers to Spain and Portugal), who noted that the proof of funds is something that can be asked but generally isn't.
We're in a similar situation to this, however if you're on a cruise that is calling in at other Spanish ports of call, technically you may be required to demonstrate that you have funds for all your time in Spain, not just Barcelona.