If you have an iPhone, go to Settings, then your Account, then Security. You can add your phone number there.
If you don’t have an iPhone, go to mobile.twitter.com, head to Settings, and add your mobile phone number there.
Once you’d added your phone number via one of these routes you’ll be able to change app permissions.