Giter Site home page Giter Site logo

gidevice-cli's Introduction

Hi there 👋

electricbubble's github stats Top Langs

gidevice-cli's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gidevice-cli's Issues

mount crash

$ ./gidevice-cli mount ../tmp/14.0/DeveloperDiskImage.dmg ../tmp/14.0/DeveloperDiskImage.dmg.signature
panic: runtime error: index out of range [2] with length 2

goroutine 1 [running]:
github.com/electricbubble/gidevice-cli/cmd.glob..func6(0x174db60, 0xc00005c640, 0x2, 0x2)
	/Users/prife/workplace/iOS/gidevice-cli/cmd/mount.go:59 +0x9c5
github.com/spf13/cobra.(*Command).execute(0x174db60, 0xc00005c5e0, 0x2, 0x2, 0x174db60, 0xc00005c5e0)
	/Users/prife/workplace/iOS/gidevice-cli/vendor/github.com/spf13/cobra/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x174dde0, 0x10014d0, 0x0, 0x0)
	/Users/prife/workplace/iOS/gidevice-cli/vendor/github.com/spf13/cobra/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/Users/prife/workplace/iOS/gidevice-cli/vendor/github.com/spf13/cobra/command.go:897
github.com/electricbubble/gidevice-cli/cmd.Execute()
	/Users/prife/workplace/iOS/gidevice-cli/cmd/root.go:26 +0x2d
main.main()
	/Users/prife/workplace/iOS/gidevice-cli/main.go:8 +0x25
FAIL: 2

mount.go

59: dmgPath, signaturePath = args[1], args[2]

should be

dmgPath, signaturePath = args[0], args[1]

Change port in wda with cli is not working

below command is not changing the port and still selecting default port 8100

gidevice -u $UDID xctest com.facebook.WebDriverAgentRunner.xctrunner —port 8200 —mjpeg-server-port 9200

Service limit

Some times i am getting these error:-

2021/07/13 20:17:41 receive packet: ServiceLimit

or

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0x728275]

goroutine 24 [running]:
github.com/electricbubble/gidevice/pkg/libimobiledevice.(*dtxMessageClient).startReceive.func1(0xc00037a3c0)
/home/runner/go/pkg/mod/github.com/electricbubble/[email protected]/pkg/libimobiledevice/client_dtxmessage.go:323 +0x35
created by github.com/electricbubble/gidevice/pkg/libimobiledevice.(*dtxMessageClient).startReceive
/home/runner/go/pkg/mod/github.com/electricbubble/[email protected]/pkg/libimobiledevice/client_dtxmessage.go:320 +0x46

Panic during cobra call

The info command works, but most other commands fail. What is wrong?

gidevice applist --udid G6TZ8H5GN70F
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x38 pc=0x127e62a]

goroutine 1 [running]:
github.com/electricbubble/gidevice-cli/cmd.glob..func1(0x164c820?, {0x133369e?, 0x2?, 0x2?})
C:/Users/gyama/go/pkg/mod/github.com/electricbubble/gidevice-cli/gidevice-cli/cmd/applist.go:22 +0xaa
github.com/spf13/cobra.(*Command).execute(0x164c820, {0xc0000860e0, 0x2, 0x2})
C:/Users/gyama/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0x164cfa0)
C:/Users/gyama/go/pkg/mod/github.com/spf13/[email protected]/command.go:960 +0x39c
github.com/spf13/cobra.(*Command).Execute(...)
C:/Users/gyama/go/pkg/mod/github.com/spf13/[email protected]/command.go:897
github.com/electricbubble/gidevice-cli/cmd.Execute()
C:/Users/gyama/go/pkg/mod/github.com/electricbubble/gidevice-cli/gidevice-cli/cmd/root.go:26 +0x25
main.main()
C:/Users/gyama/go/pkg/mod/github.com/electricbubble/gidevice-cli/gidevice-cli/main.go:8 +0x17
PS C:\Users\gyama\go\pkg\mod\github.com\electricbubble\gidevice-cli\gidevice-cli>

receive packet: InvalidService

run on windows 10 with usbmuxed built by myself.

PS D:\workplace\gidevice-cli> .\gidevice-cli.exe list
8a8358e12e0306cc804f4367d9152fb795e3b561
8a8358e12e0306cc804f4367d9152fb795e3b561: receive packet: InvalidService

手机信息为iPhoneX,系统版本14.0.1。
iConsole没有这个问题。对比了一下,代码里对14版本以上的手机调整了通信的服务导致错误。

InstrumentsSecureProxyServiceName = "com.apple.instruments.remoteserver.DVTSecureSocketProxy"

lockdown.go里

func (c *lockdown) InstrumentsService() (instruments Instruments, err error) {
	service := libimobiledevice.InstrumentsServiceName
	if DeviceVersion(c.iOSVersion...) >= DeviceVersion(14, 0, 0) {
		service = libimobiledevice.InstrumentsSecureProxyServiceName
	}

	var innerConn InnerConn
	if innerConn, err = c._startService(service, nil); err != nil {
		return nil, err
	}
	instrumentsClient := libimobiledevice.NewInstrumentsClient(innerConn)
	instruments = newInstruments(instrumentsClient)

	if service == libimobiledevice.InstrumentsServiceName {
		_ = innerConn.DismissSSL()
	}

	if err = instruments.notifyOfPublishedCapabilities(); err != nil {
		return nil, err
	}

	return
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.