Now we have to re-sign the modified app. Run these commands in your terminal. Copy and paste one command at a time and press Enter after each command:
sudo codesign -f -s- --deep /Applications/Windows\ Phone.app/Contents/Resources/cabextract
If you don't have the necessary developer tools on your Mac, macOS will ask you at this point if you want to download them. Just click "Install". You do not have to install Xcode. Wait until the installation has completed (this can take quite some time), then don't forget to rerun the above codesign command before you enter the following ones.
sudo codesign -f -s- --deep /Applications/Windows\ Phone.app/Contents/Resources/ZMDBB
sudo codesign -f -s- --deep /Applications/Windows\ Phone.app/Contents/Resources/ZMDBM
sudo codesign -f -s- --deep /Applications/Windows\ Phone.app/Contents/Resources/ZMDBZ
sudo rm /Applications/Windows\ Phone.app/Contents/Resources/container-migration.plist
sudo codesign -f -s- --deep /Applications/Windows\ Phone.app