Skip to content

Commit

Permalink
[mono][ios] Apple mobile template allows passing process arguments to…
Browse files Browse the repository at this point in the history
… the runtime (dotnet#92772)

* Remove unused template

* Pass process arguments to the runtime

---------

Co-authored-by: Ivan Povazan <[email protected]>
  • Loading branch information
kotlarmilos and ivanpovazan authored Oct 6, 2023
1 parent 49f9f7a commit 9634520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 82 deletions.
80 changes: 0 additions & 80 deletions src/mono/sample/iOS/main.m

This file was deleted.

8 changes: 6 additions & 2 deletions src/tasks/AppleAppBuilder/Templates/runtime.m
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,14 @@ static bool is_pinvoke_override_library (const char* libraryName)
mono_set_crash_chaining (TRUE);

if (wait_for_debugger) {
char* options[] = { "--debugger-agent=transport=dt_socket,server=y,address=0.0.0.0:55556" };
mono_jit_parse_options (1, options);
managed_argv = (char**) realloc (managed_argv, argi + 1);
// add an extra arg
managed_argv [argi] = strdup ("--debugger-agent=transport=dt_socket,server=y,address=0.0.0.0:55556");
argi++;
}

mono_jit_parse_options (argi, managed_argv);

MonoDomain *domain = mono_jit_init_version ("dotnet.ios", "mobile");
assert (domain);

Expand Down

0 comments on commit 9634520

Please sign in to comment.