ios reports code

starting to merge iOS reports code.
Shouldn't be checked in as there is a hight probability it will cause headache at release time.