Schweinsteiger, who helped Bayern win a treble of European Cup and German league and cup titles this season, was operated on Monday to remove bone fragments, the club said during a news conference.
The Germany international has already returned to Munich.
"He will be back in time for the training start to the new season on June 26," Bayern said.
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.