# 将[wda](https://github.com/appium/WebDriverAgent.git) 打包成 [ipa](https://zhuanlan.zhihu.com/p/673319266) ``` 1、打开Xcode,打开对应的WebDriverAgentLib | WebDriverAgentRunner,选好各项配置,填好开发者账号 2、打开Xcode,File -> Save As Workspace... 3、保存名字可以任意取,我保存的是xiaozaiTest.xcworkspace 4. xcodebuild build-for-testing -scheme WebDriverAgentRunner -sdk iphoneos -configuration Release -derivedDataPath ./build-test 这里需要等一小会,直到出现「TEST BUILD SUCCEEDED」,就表示成功了。 5. cd ./build-test/Build/Products/Release-iphoneos 6. mkdir Payload && cp -r *.app Payload 7. zip -r WDA.ipa Payload ``` ## 参考资料 1. [知乎](https://zhuanlan.zhihu.com/p/673319266) 2. [csdn](https://blog.csdn.net/wx17343624830/article/details/129993639)