Not all GarageBand versions are compatible, what are your versions?
See this list: GarageBand for iOS and Mac: Project compatibility
You can either transfer your project using iCloud or using iTunes.
Did you share your project to iTunes on your IOS device? Then this should work:
Share GarageBand songs
You can open the GarageBand song in GarageBand on your Mac, or play the audio file in iTunes (or any compatible audio application) on your computer. GarageBand songs cannot be opened on a Windows computer.
Or if you want to use iCloud, try this:
Use iCloud with GarageBand