Whether wda can be signed using a distribution certificate?

I tried to sign wda with a distribution certificate, but the following error occurred. Can anyone help me?

Firstly, make sure you are following the Appium instructions on signing the WDA:

Secondly, if you are signing with a distribution cert, you cannot use ‘get-task-allow’, you will have to turn off ‘get-task-allow’ as Apple does not allow that entitlement with distribution cert. This may impact WDA’s ability to function, so beware:

https://stackoverflow.com/questions/1003066/what-does-get-task-allow-do-in-xcode/1026472#1026472

My advice would be to sign as the instructions advise.

Thanks for your replay.
I set get-task-allow = false, and the build is successful, but wda could not launch, cause this error.
image

^^^Hope you read this part.