How do i make a game compatiable for mac?

Im trying xcode but i have no idea where to learn this stuff