在当WDA中配置好证书
xcodebuild build-for-testing -scheme WebDriverAgentRunner -sdk iphoneos -configuration Release -derivedDataPath /tmp/derivedDataPath
cd /tmp/derivedDataPath
cd Build/Products/Release-iphoneos # path might be different
mkdir Payload && cp -r *.app Payload
进入到目录 WebDriverAgentRunner-Runner.app/Frameworks 把XC开头的文件全部删掉
用zip命令打包出来一个ipa
zip -r WDA.ipa Payload
使用签名工具重新签名即可。最好使用原来的配置文件