As a term of release McCain, through his attorney Jill Carter, was ordered to stay at least 100 yards from the woman in the case, the Los Angeles City Attorney's Office confirmed to ESPN.
McCain is next due in court for a pretrial hearing on Aug. 21.
McCain is accused of spitting on and grabbing the neck of the woman in the incident that allegedly occurred on Jan. 7.
McCain was not with the Colts in June for their mandatory minicamp as coach Frank Reich said he "felt like it was best that we get this thing settled and work through it."
The defensive end signed with the Colts in May after the Los Angeles Chargers rescinded their tender to him in April, making him a free agent. The Chargers would not divulge if an incident led them to rescind the tender offer. However, the team did say it had learned of an incident involving McCain before making its decision.
McCain told the Indianapolis Star in June that the woman was "lying" about the alleged incident.
McCain, 26, was productive in his first and only season with the Chargers, finishing with 20 combined tackles, 5 sacks and 2 forced fumbles in 15 games played.
ESPN's Mike Wells contributed to this report.