How to debug a real device using xcode tools in terminal

I already have Xcode tools installed on my Mac, and now I can create my iOS game project as follows:

xcodebuild -scheme "Game Scheme" 

and the next thing I want is to install and run the generated application (using the command above) on a real device (connect to Mac).

I am wondering if there is such a command, for example (I read the doc about xcrun, but still can't figure out how to do this):

 xcrun "my game.app" -l 

to install the game on my device, launch it and print all the logs in my terminal in the same way as Xcode on the console.

Any advice would be appreciated, thanks :)

+5
source share
1 answer

This is a complex process that requires reverse engineering of the MobileDevice platform interface or underlying protocols.

Fortunately, various parties have done the work for you.

https://github.com/phonegap/ios-deploy

http://www.libimobiledevice.org/

+4
source

Source: https://habr.com/ru/post/1234657/


All Articles