While whole foods are a great source of nutrition, but they are not always easy to carry along for a long workout or race. I think a more convenient option is to have a combination of whole foods in an easier to carry package. A great example of this would be Amrita Bars.
Amrita Bars are made with non-GMO and mostly organic ingredients that are identifiable with your own eyes. There are no artificial ingredients and they are the perfect balance of nutrients you need to get your through your race.
One option would be to keep some of the whole foods options, like the ones recommended in this article, in your special needs bag as a little something different to fuel you through the second half of the bike or the run.
Anyway here are some ideas for other whole food alternatives…
Source: Fuel Your Training with Natural Energy Alternatives | TrainingPeaks