There are cheaper non-Apple versions of the adapter like this.
One other thing to keep in mind is that your iPhone is expecting a mic level signal while the RCA outputs will be at line level, so you’ll have to turn the volume way down to avoid distortion. You could use an adapter like this but that’s adding more to the cost.