Skip to content

Commit ac5ea33

Browse files
gabebearshazron
authored andcommitted
Error when people pass args or envs with nolldb. (ios-control#407)
LLDB is needed to set args/env, so the args/envs variables are ignored when using nolldb.
1 parent 9fbf6eb commit ac5ea33

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ios-deploy/ios-deploy.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1831,7 +1831,7 @@ void usage(const char* app) {
18311831
@" -t, --timeout <timeout> number of seconds to wait for a device to be connected\n"
18321832
@" -u, --unbuffered don't buffer stdout\n"
18331833
@" -n, --nostart do not start the app when debugging\n"
1834-
@" -N, --nolldb start debugserver only. do not run lldb\n"
1834+
@" -N, --nolldb start debugserver only. do not run lldb. Can not be used with args or envs options\n"
18351835
@" -I, --noninteractive start in non interactive mode (quit when app crashes or exits)\n"
18361836
@" -L, --justlaunch just launch the app and exit lldb\n"
18371837
@" -v, --verbose enable verbose output\n"
@@ -2037,6 +2037,11 @@ int main(int argc, char *argv[]) {
20372037
return exitcode_error;
20382038
}
20392039
}
2040+
2041+
if (debugserver_only && (args || envs)) {
2042+
usage(argv[0]);
2043+
on_error(@"The --args and --envs options can not be combined with --nolldb.");
2044+
}
20402045

20412046
if (!app_path && !detect_only && !command_only) {
20422047
usage(argv[0]);

0 commit comments

Comments
 (0)