In a situation i am stuck to part where i need to launch any iPhone application from terminal . Obvious that it is USB connected . Can anyone help me out ?
I myself got an answer to my question by investing lot of time.
First fetch Identifier
ideviceinstaller -l
Second copy the Identifier of the app which you want to launch
idevicedebug run " App Identifier "
That's it here you go .
Related
I'm getting a prompt on my mobile device asking if I want to install the app on my device. I give yes, then nothing happens! for the first time and the app never installed before
I tried to use the cmd to connect my mobile device , I tried to restart my device and I've done the same steps in my device setting again
developer option is On- in my phone the same as USB debugging...
the phone is connected and known in vs code
when I choose my phone to run the app. I got this error:
how to Fix it?
at the left sidebar of vs code you can create new configuration file, run and debug section
An app I've created is already installed on my device that I simply want to launch using instruments. It is already installed on my device. I simply want to launch the app. I am using this
instruments -w <device_id> -t "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Activity Monitor.tracetemplate" -D /tmp/ignoredtracedata.trace <app_name>
This is what I get
Instruments Trace Error : (null)
I had this working at one point. Then without making any changes the next day I came to work on it and it wasn't working :(. I've tried things for a couple of hours and heven't made much progress.
I am using the Ruby gem Frank to run tests. I'd like to launch the app in different languages which is why I want to use instruments instead of simply adding the -d debug flag to launch the app on the device.
Does anyone have anything that will help me?
I don't know exactly why this fixed my problem. But I checked which processes were running with $ ps and instruments was running. I just killed instruments sudo killall instruments and it worked.
I'm going to go out on a limb here and assume that the app you're trying to run instruments on is an app you've developed? You can't use Instruments on someone else's app, or you'd have access to their written code.
If it's you're own code, why do it through terminal? You can launch instruments directly from Xcode. Open your project, press and hold on the "Run" button in the toolbar, and select "Profile". Choose your instrument of choice and voila.
I'm working on an app and I've been able to successfully debug it using the device. I have a crudely working version of the app and I wanted to test it out on the phone, show it to friends and get opinions. The problem is, after doing adb install I now have the icon on my phone but when I try to launch it, it gives me the "Waiting For Debugger the process is waiting for the debugger to attach" message. I have removed the 'debug=true' flag in the application manifest and also turned off usb debugging on the phone. Why is the application thinking I'm still debugging it? What do I need to do to be able to run it without having debugger on eclipse attached?
First, Set debug="false" in manifest.xml, and uninstall application from your device and reinstall it. It will work
just restart the device, not power off, choose restart
If all the above doesn't work, start the application in debug mode.
1) In eclipse -> go to the debug perspective
2) When the app is running -> press the "Disconnect" button (next to the "stop")
3) Turn off your phone.
4) Remove the battery for 30 sec
All should be back normal
I developed my first (small) Andoid application using Eclipse and are now ready to transfer it to my Galaxy S mobile device (develping for Android 2.1)
Following another thread in SE, I changed the run mode in Eclipse to manual in the hope that I would be able to chose my phone and/or AVD every time I run the program.
The popup list howerver only show the AVD, my phone is not present in the list.
So obviously, my Samsung Galaxy S device is not recognized. Howerver, I can transfer to and from the device using a drive letter, so the USB connection is working properly.
Anyone any idea what I am missing here ? I'm not sure if it is an Eclipse problem , or a driver or ....
You have to put the phone in 'debug' mode - I don't have the instructions handy (but you can search here or on the android site for the info you need)
I experienced the same issue with Eclipse on a Mac OS X. Simply putting the phone in 'debug' mode (Settings -> Applications -> Development -> USB debugging) did not solve the issue. I have to do below in the command line to solve the issue.
sudo adb kill-server
sudo adb start-server
I faced the problem of eclipse not detecting my xperia x10.I installed sony ericson PC companion, the problem is fixed now. Seems some drivers specific to the manufacturer of the device is required.
For those still looking, you don't need to install the bloat. Go to: http://www.samsung.com/us/support/owners/product/SCH-I535RWBVZW
Click on "Manuals & Downloads" and then "Software" under that.
I was having problems connecting to my S5 from my Linux laptop (after enabling USB Debugging) - I found this guy's post really helpful!
https://androidonlinux.wordpress.com/2013/05/12/setting-up-adb-on-linux/