We study the longitudinal-transverse double-spin asymmetry with a cosϕS modulation in semi-inclusive deep inelastic scattering for charged and neutral pions production. We consider the particular case in which the transverse momentum of the final state hadron is integrated out. The corresponding asymmetry may be contributed by two parts: one is the convolution of the twist-3 distribution function gT(x) and the unpolarized fragmentation function D1(z), the other is related to the coupling of the transversity distribution function h1(x) and the collinear twist-3 fragmentation function ˜E(z). We take into account both contributions to predict the cosϕS asymmetry at the kinematics of CLAS12 and a future Electron Ion Collider. We find that the asymmetry of pion production at CLAS12 is sizable, and ˜E(z) plays an important role in the asymmetry in the large-z region.