Text Messaging Forwarding code not showing up on macbook pro
The iPhone and the macbook should be on the same wifi network.


Open the messages app in your macbook, then go to preferences. Click on iMessage account and you should see your iCloud account, check the box near email and phone number
go to your iPhone settings -> messages -> Send and receive, and see if your email is there.
turn on text message as you did before, the code will show on your messages app on the macbook