Apple's iOS 12.1 will fix iPhone XS, XS Max charging issue
https://www.cnet.com/news/apples-ios-12-1-will-fix-iphone-xs-max-charging-issue/
Apple's next software update, iOS 12.1, will solve the problem. It's currently available in beta and will arrive on all iPhones and iPads later this fall.
Apple's beta program has been open to the public since early 2015, but it's only recommended to people who don't rely on a single iPhone or who are willing to put up with some possible glitches.