Hi, I think the problem is with the latest version of iOS. Here‘s why: I have a 2011 MacBook Pro running OS X 10.12 and an old version of GarageBand. This works just fine with my Yamaha P155 (vintage 2011). My iPad and iPhone are on ios 15.5. GarageBand worked very briefly with the Yamaha on both the phone and the tablet and then didn‘t. I reset both the iPad and the phone. Again, after about 5 minutes, GarageBand didn‘t recognise the input. I also have an old Android
phone. Just for the heck of it, I downloaded a freebie app (Piano MIDI) from google play and tried that too. It worked!
So please apple, fix your iOS midi bug!