We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b8835c commit 21715b2Copy full SHA for 21715b2
devices/ios.go
@@ -834,9 +834,13 @@ func (d IOSDevice) OpenURL(url string) error {
834
return d.wdaClient.OpenURL(url)
835
}
836
837
-func (d IOSDevice) ListApps() ([]InstalledAppInfo, error) {
+func (d *IOSDevice) ListApps() ([]InstalledAppInfo, error) {
838
log.SetLevel(log.WarnLevel)
839
840
+ // Lock to prevent concurrent access to usbmuxd (race condition on ReadPair)
841
+ d.mu.Lock()
842
+ defer d.mu.Unlock()
843
+
844
// ensure tunnel is running for iOS 17+
845
err := d.startTunnel()
846
if err != nil {
0 commit comments