Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/ios-deploy/ios-deploy.m
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ void usage(const char* app) {
@" -t, --timeout <timeout> number of seconds to wait for a device to be connected\n"
@" -u, --unbuffered don't buffer stdout\n"
@" -n, --nostart do not start the app when debugging\n"
@" -N, --nolldb start debugserver only. do not run lldb\n"
@" -N, --nolldb start debugserver only. do not run lldb. Can not be used with args or envs options\n"
@" -I, --noninteractive start in non interactive mode (quit when app crashes or exits)\n"
@" -L, --justlaunch just launch the app and exit lldb\n"
@" -v, --verbose enable verbose output\n"
Expand Down Expand Up @@ -2037,6 +2037,11 @@ int main(int argc, char *argv[]) {
return exitcode_error;
}
}

if (debugserver_only && (args || envs)) {
usage(argv[0]);
on_error(@"The --args and --envs options can not be combined with --nolldb.");
}

if (!app_path && !detect_only && !command_only) {
usage(argv[0]);
Expand Down