Look at Golden Cheetah. Does exactly what you want for free and it's well-developed.You can recreate workouts (TARWAPM, 80/20 tri, TR, Computrainer PIG, Sufferfest, Zwift, etc) in the workout builder and ride virtual courses. You'll need a PC and a cheap $15USB Ant+ USB stick. I prefer to use a laptop over a phone to control my trainer, but that's just me.
PerfPro is another good solution and has access to public training plans and a workout library for $99(one-time). Also needs a PC and USB Ant+