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

More arguments, new format #5

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

hborders
Copy link

I've made the arguments after the launched application more order independent, and I've added the ability to specify stdout, stderr, an environment with a plist file, and command-line arguments.

@jon914
Copy link

jon914 commented Feb 9, 2011

This is exactly what I needed, but I'm confused about how I make stdout/stderr redirect to, say the terminal. What is a sample command to make it do that?

e.g. (these did not work)
./iphonesim launch /Users/jon/blah/Build/Debug-iphonesimulator/blah.app -stderr -stdout
./iphonesim launch /Users/jon/blah/Build/Debug-iphonesimulator/blah.app -stderr 1.txt -stdout 2.txt

@hborders
Copy link
Author

hborders commented Feb 9, 2011

I haven't been able to figure this out. The underlying library wants a file name, not a file handle. I'm not awesome enough at darwin to know what file stdout is for the terminal. I tried the /dev/fd/1, and it didn't work.

This works for me. You'll just have to tee the files.
./iphonesim launch /Users/jon/blah/Build/Debug-iphonesimulator/blah.app -stderr 1.txt -stdout 2.txt

@hborders
Copy link
Author

Go for it.

jhaynie pushed a commit that referenced this pull request Apr 14, 2014
[TIMOB-15116]iOS7 : Include the new 64bit simulator.
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

Successfully merging this pull request may close these issues.

None yet

4 participants