FR 8630 then FR 3035 at Barcelona
Tangier → Barcelona → Krakow
Timetable, Barcelona time
15:10FR 8630 from Tangier at the gate
09:35FR 3035 to Krakow leaves the gate
18 h 25 apart on the timetable, overnight
FR 3035 leaves 18 h 25 after FR 8630 arrives on the timetable: more than half a day, so not a connection we count.