There was no replacement bill. It was only a repeal bill. And that’s part of what troubled McCain.
It was not a pure repeal of ObamaCare with nothing in its place. There were healthcare provisions. I also don’t think McCain objected to it because it was not conservative enough.
ObamaCare Replacement Act
https://www.congress.gov/bill/115th-congress/senate-bill/222