These are fruits from two tree, every year fruits gets like this.
The crack in the fruit could be due to Boron deficiency. The infestation looks like fruit fly. Use fruit fly baits about 60 days before maturity of fruits or go for chemical control. Remove all the infested fruits that fall on the ground immediately because they become the breeding site for the next season.