Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-L option only installs app #60

Closed
heinst opened this issue Sep 11, 2014 · 9 comments
Closed

-L option only installs app #60

heinst opened this issue Sep 11, 2014 · 9 comments

Comments

@heinst
Copy link

heinst commented Sep 11, 2014

I am trying to use the -L option, and this only installs the app and does nothing else with it.

@senthilmanick
Copy link

The -L option is just meant to download and just launch the app.

@heinst
Copy link
Author

heinst commented Sep 18, 2014

I understand that, but it installs the app then does nothing after that. It doesn't launch the app or anything

@kavanj
Copy link

kavanj commented Sep 23, 2014

From what I have experienced, the -L option does not launch the app, but only installs it. This goes against my initial expectation of the app also being launched.
Is the intended functionality of the -L option to install and launch the application, or only to install the application and exit lldb?

@senthilmanick
Copy link

The intent is to install and launch through lldb

I noticed that with 6.0.1 if the previous session of lldb is not killed then the launch hangs

Also if the device is locked then the error is not propagated. This is fixed in my fork

@heinst
Copy link
Author

heinst commented Oct 16, 2014

@senthilmanick So your fork fixes this issue? What about on 7.0+?

@senthilmanick
Copy link

It's the same issue. I haven't tested thoroughly in 7.0

@senthilmanick
Copy link

Fixed in v1.3.0 in senthilmanick/ios-deploy

shazron added a commit that referenced this issue Nov 13, 2014
Fixed the hang when the device is locked.

When the device is locked, we get empty packets in the server.
Now fixed by closing both the lldb and server sockets.
Also after safequit, we need to detach to make the "justlaunch" option to be less error prone.

Multiple bug fixes: 
1. When multiple devices are connected, the detect was not listing all the devices ios-deploy -c -t 1
2. Fixes for issue #75 - non-interactive mode broken lldb and ios-deploy may still be running ios-deploy -b ... -d -I -L
3. Fixes for issue #60 - -L option not working properly ios-deploy will not quit or sometimes hang
4. When multiple devices are connected, cannot use -i option to specify the device ios-deploy -b ... -i -d -I -L
5. Allow timeout when downloading
@shazron
Copy link

shazron commented Nov 14, 2014

The correct usage should be:
ios-deploy -d -L -b myapp.app.

Adding the -L detaches from lldb after launch. It could be more clearer, but that's how it works currently.

@shazron
Copy link

shazron commented Nov 14, 2014

1.3.0 release pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants