File tree Expand file tree Collapse file tree 3 files changed +642
-0
lines changed Expand file tree Collapse file tree 3 files changed +642
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ check_go_ios_version(){
195195 if ! [ -x " $( command -v " go-ios" ) " ]; then
196196 install_go_ios
197197 else
198+ # Here it complains about the missing agent/tunnel
198199 GO_IOS_VERSION=$( go-ios --version)
199200 # echo "Version of go-ios is: $GO_IOS_VERSION"
200201 fi
@@ -237,6 +238,16 @@ prompt_xcode_launch(){
237238ios_get_devices (){
238239 check_go_ios_version
239240 check_dependency " jq"
241+
242+ if [[ $( ps S | grep -c " go-ios tunnel" ) -ne 2 ]]; then
243+ echo " ♻️ Launching go-ios tunnel for maximum iOS compatibility (17+)"
244+ nohup go-ios tunnel start --userspace --nojson &
245+ GO_IOS_TUNNEL_PID=$!
246+ # echo $GO_IOS_TUNNEL_PID
247+ disown $GO_IOS_TUNNEL_PID
248+ sleep 1
249+ fi
250+
240251 IOS_USB_DEVICES=( $( go-ios list --nojson | sort -u) )
241252}
242253
You can’t perform that action at this time.
0 commit comments