The rapper ASAP Rocky has been detained in Stockholm for two weeks while investigations continue into an assault charge.

A court ruled on Friday that ASAP Rocky, 30, whose real name is Rakim Mayers, was a flight risk and must to be confined to a detention center, his lawyer, Henrik Olsson Lilja, said in a telephone interview.

“He of course is very disappointed and this is a catastrophe for his tour,” Mr. Olsson Lilja added. ASAP Rocky was scheduled to headline Wireless, a London festival with a capacity of 50,000, on Sunday. Tour dates in Ireland, Germany, Russia and elsewhere across Europe were also planned.

Mr. Olsson Lilja said the detention was unnecessary and would be appealed. “Of course a world artist like him would come back to Sweden if there is a trial in the summer or fall,” he said.