“She got the location wrong,” Ms. Lightfoot said, visibly frustrated, at a news conference. “That’s the danger of trying to govern via tweet.”

“I’m not going to be distracted by nonsense tweets from people who don’t know what they’re talking about,” she later added.

Weeks before taking office in May, Ms. Lightfoot traveled to Washington, where she met with several officials, including Ms. Trump, whom she complimented at the time.

“I was impressed that she knows a lot of details about what’s happening on the ground in Chicago, around violence reduction efforts as well as work-force development,” Ms. Lightfoot said in an NPR interview at the time.

The White House echoed the sentiment in a statement provided to The New York Times on Wednesday.

“Ivanka has appreciated getting to know Mayor Lightfoot, respects her commitment to addressing this issue and looks forward to continuing the conversation around this issue, work-force development and economic opportunity for all,” it read.