Square waves = theoretically infinite harmonics at positive multiples of the fundamental frequency (in practice reducing with order of the harmonic)
Then there's in-band spurs / spurious emissions, different from harmonics.