launching iOS App from Mac OS X console

怎甘沉沦 提交于 2019-12-05 17:40:40

For command line remote GDB (or just upload to device) you can use this little tool, choose the fork closest to what you need, the original author will not support it anymore: https://github.com/ghughes/fruitstrap

You may not be able to use it as-is (I had to tweak the gdb parameters for my use) but its a good start.

You can further automate things by automatically run this script

for i in $(system_profiler SPUSBDataType | grep "Serial Number: " | grep -Po "[A-Za-z0-9]{40,}$") ; do
    echo "Installing on: $i"
    #use fruitstrap with device $i
end

this will simply check all USB port and keep only the ones that are currently connected to an iOS device and return its UDID.

From there you should be able to automate the testing with several different arguments for your app.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!