As explained in previous file of this book, if the "legacy" option is not used, the signature can't be made.
$ NEW_ADDRESS_1=$(bitcoin-cli getnewaddress)
$ echo $NEW_ADDRESS_1
2MxuvthTutriscciS5WkjixoMDneEizSwVW
$ NEW_SIG_1=$(bitcoin-cli signmessage $NEW_ADDRESS_1 "Hello World")
error code: -3
error message:
Address does not refer to key