Skip to content

Commit 985a97a

Browse files
committed
Save work-in-progress iOS 17+ screenshot fix
1 parent 3a049d6 commit 985a97a

File tree

3 files changed

+642
-0
lines changed

3 files changed

+642
-0
lines changed

common_tools

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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(){
237238
ios_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

0 commit comments

Comments
 (0)