Researchers say the fruit grown could be a replacement for staple crops under threat from climate change.