The fight between Apple and the FBI has come to Boston with agents going after an iPhone that belongs to a reputed Boston gang member accused of being a triggerman in a street feud that bloodied a rival.

The FBI took two phones from Desmond Crawford in November 2015, and one of them is an iPhone that agents say is locked and cannot be opened.

ALSO READ: Apple quotes Justice Brandeis in new court documents

Crawford — a member of Columbia Point Dawgs, a street gang taken down by the FBI and Boston police — is facing federal charges of racketeering, committing a violent crime in aid of racketeering, using a firearm during a crime of violence and being a felon in possession of a firearm.

In an affidavit, the FBI says it intercepted wiretapped phone conversations in which Crawford and another man talk about the March 27, 2015, shooting of a rival, as well as drug dealing.

FBI agent Matthew Knight wrote in support of the iPhone search that he believes information about the gang’s activities on the phone could lead them to “substantial evidence” regarding the sources of guns, drugs and accomplices.

But he wrote, that they cannot unlock the phone.

Federal Judge Marianne B. Bowler signed off on the affidavit, which was filed Feb. 1.

This is the most recent example of the FBI and federal courts ordering Apple to unlock their devices to aid law enforcement.

In the San Bernardino, Calif., mass-killing terrorism case, the FBI has obtained a court order directing tech giant and iPhone creator Apple to create software to hack into the encrypted iPhone 5c of slain terrorist Syed Farook. But Apple is fighting it.