electricbubble / gidevice-cli Goto Github PK
View Code? Open in Web Editor NEWgidevice cli ( like `libimobiledevice` )
License: MIT License
gidevice cli ( like `libimobiledevice` )
License: MIT License
When i am trying to execute gidevice-cli in mac. It's giving me this error
tls: failed to find any PEM data in key input
$ ./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]
gidevice -u 39xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7 xctest com.facebook.WebDriverAgentRunner.xctrunner forward -l=9100 -r=9100
missing functionality to connect to existing webdriveragentrunner
similar function:
tidevice xctest -B com.facebook.wda.WebDriverAgent.Runner
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
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
Facebook idb has functionality to call home button. Possible to recreate it in this project?
Thanks
Reference : https://github.com/everettjf/USBKeyboard
is that a good alternative for the tidevice?
so i can install the WDA on the device?
Requesting to show logs only when executed command with argument --debug
gidevice -u $UDID xctest com.facebook.WebDriverAgentRunner.xctrunner --debug
This repository is interesting for iOS devices
@electricbubble is there any command for restart and shutdown the iOS deivce.
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>
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
}
Hi @electricbubble is there any command in gidevice-cli for pushing provision profile in device.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.