Broward Sheriff's Office said 22-year-old Dedrick Devonshay Williams, of Pompano Beach, was arrested shortly before 7pm on Wednesday.
Authorities said the rapper was ambushed by two people.
Rapper XXXTentacion was shot and killed during an apparent robbery Monday in Broward County, Florida, police said.
Judge Mollica ordered Mr Williams to be held without bond.
Own-goal earns Iran 1-0 win over Morocco at World Cup
Substitute Bouhaddouz's diving header to clear a free-kick landed on his own net as Iran picked up three vital points. Morocco will now need a positive result when they play Portugal on Wednesday, before Iran play Spain on the same day.
XXXTentacion was shot dead on Monday after leaving a motorcycle dealership.
Williams was also slapped with a probation violation for a previous grand theft auto charge and not having a valid driver's license. He last appeared in court in April, which is when he was given probation.
He was facing 15 felony charges and was now awaiting trial after being charged with counts of false imprisonment, aggravated battery of a pregnant woman and domestic battery by strangulation, for incidents involving his ex-girlfriend in 2016. In many states, first-degree murder is premeditated, but Florida's law allows suspects to be charged with the crime if they commit a murder while perpetrating another felony, or if the murder is the result of dealing drugs. "Eventually that's what I'll do, but right now I have to stay strong". His pending charges were false imprisonment, aggravated battery of a pregnant woman and domestic battery by strangulation. He was booked into the Broward County Main Jail.
The mum of chart-topping rapper XXXTentacion shared the image of the baby days after his death. He said he used violence so she would engage with him.
Several rappers took to social media to mourn the rising rapper's death.