Defence counsel Craig Ruane did not seek a continuation of an interim name suppression order and Judge Saunders lifted it.
Gosnell, whose address has been given as the city's men's prison, is described as unemployed.
It is understood that he is not from Christchurch and does not have any family in the city.
Two others have been charged in relation to Miles, who was the subject of a prolonged missing persons probe last year.
An 18-year-old woman, who has name suppression, has been charged with being an accessory to murder.
She did not appear in court today.
A third accused, a 35-year-old Christchurch man with name suppression, has been charged of robbing Miles of a cask of wine, iPod and cellphone on August 22 - the day police say the youngster was killed.
Miles, who was in Child, Youth and Family care, went missing after going to a friend's house at Cashel St.
His remains were found on December 13 at the Ruru Lawn Cemetery in Linwood and his distraught family laid him to rest at a memorial service on December 23.