ios測試的app測試包,真機設備需要開發者證書並且將測試機的udid加入到pp文件文件,configruation 要求為debug模式的ipa包,
1.蘋果手機的UDID,
a.通過 xcode-window-Devices and Smulators
b .安裝 ios-deploy 后,可以在terminer命令
ios-deploy -c
2.ios app 的H5 頁面,查看元素信息,使用工具chrome inspect ,使用前需要先安裝 remotedebug_ios_webkit_adapter
命令行安裝 :npm install remotedebug-ios-webkit-adapter -g
brew install ios-webkit-debug-proxy
命令行啟動:remotedebug_ios_webkit_adapter --port=9000
3.安裝app ,通過命令行來:需安裝(ios-deploy,ideviceinstaller)
ios-deploy -b /Users/brian/Desktop/12.ipa
ideviceinstaller -i /Users/brian/Desktop/12.ipa
4.查看ios 手機上安裝的app的
ideviceinstaller -l
5.MAC 的appiumlibrary 庫在site-packages下:
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
6.WDA的驅動app,在手機上安裝的命令:
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=b0b1a6ba75baf·········d0e4b47ec26c91' test
7.安裝macaca后,通過命令可以打開debug的web頁面:
app-inspector -u b0b1a6ba75baf·········d0e4b47ec26c