Skip to content

Commit

Permalink
Save work-in-progress iOS 17+ screenshot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IGPenguin committed Oct 17, 2024
1 parent 3a049d6 commit 985a97a
Show file tree
Hide file tree
Showing 3 changed files with 642 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common_tools
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ check_go_ios_version(){
if ! [ -x "$(command -v "go-ios")" ]; then
install_go_ios
else
#Here it complains about the missing agent/tunnel
GO_IOS_VERSION=$(go-ios --version)
#echo "Version of go-ios is: $GO_IOS_VERSION"
fi
Expand Down Expand Up @@ -237,6 +238,16 @@ prompt_xcode_launch(){
ios_get_devices(){
check_go_ios_version
check_dependency "jq"

if [[ $(ps S | grep -c "go-ios tunnel") -ne 2 ]]; then
echo "♻️ Launching go-ios tunnel for maximum iOS compatibility (17+)"
nohup go-ios tunnel start --userspace --nojson &
GO_IOS_TUNNEL_PID=$!
#echo $GO_IOS_TUNNEL_PID
disown $GO_IOS_TUNNEL_PID
sleep 1
fi

IOS_USB_DEVICES=( $(go-ios list --nojson | sort -u) )
}

Expand Down
Loading

0 comments on commit 985a97a

Please sign in to comment.