There may be a viral involvement, but the obvious problems are periods of drought, extremes of temperature, possible sunscald, and the possibility that some creature has been 'grazing' the tomato fruits. The plant looks as if it's suffering from insufficient water, the fruits suggest infrequent and irregular water supplies (evidenced by the cracking and splits in the skin, caused by the fruit beginning to swell but the skin not keeping up). The patchy areas in the skin may be caused by something grazing, but the biggest problem does appear to be cultural.
Its important that tomatoes are given frequent, sufficient and regular water, particularly as the fruits start forming - irregular water supplies cause this typical cracking of the fruits. If the plant doesn't have sufficient foliage, or the foliage has withered or drooped, then the fruits are also more exposed to extremely hot sun, without the shading effect of leaves. Equally, extremes of temperature, particularly between day and night, can cause troubles - it may be useful to provide some shade for tomatoes where you are during the hottest part of the day.
More info in the link below, but some of the problems mentioned are localized to USA, particularly those regarding insect troubles - generally, though, it may be helpful for future growing of tomato crops