Skip to content

Instantly share code, notes, and snippets.

@jineshqa
jineshqa / reset_simulators.sh
Created October 22, 2019 17:35
No simulators visible in Xcode
# Install snapshot gem
gem install snapshot
# Reset all the simulators
fastlane snapshot reset_simulators
# Redirect console output to a file and display on console at the same time.
bundle exec fastlane <your_lane_here> --verbose 2>&1 | tee /path/to/logfile.txt
@jineshqa
jineshqa / test.log
Created March 3, 2020 23:56
appium error
2020-03-03 15:49:44.579009-0800 WebDriverAgentRunner-Runner[13001:2373474] The following attributes were requested to be included into the XML: {(
FBEnabledAttribute,
FBVisibleAttribute,
FBXAttribute,
FBYAttribute,
FBWidthAttribute,
FBHeightAttribute,
FBTypeAttribute,
FBValueAttribute,
FBNameAttribute,
@jineshqa
jineshqa / disable-swipe-tutorial.sh
Created September 12, 2024 05:30 — forked from kinwahlai/disable-swipe-tutorial.sh
Disable swipe tutorial for simulator (ios13 above)
#!/bin/bash
# This script archive 2 things here
# 1. boot the fresh simulator once, so we can reduce the boot time in UI test
# 2. Simulator shows swipe tutorial on first use of keyboard (iOS13 above), this script will set simulator preferences so it wont show the tutorial
function get_simulator_udid() {
echo '' | xcrun simctl list devices | grep "iPhone" | grep -v "unavailable" | awk -F "[()]" '{ for (i=2; i<NF; i+=2) print $i }' | grep '^[-A-Z0-9]*$'
}