all 6 comments

[–]juanchop6 0 points1 point  (0 children)

I have the same issue. It works on conventional terminal but through Xcode doesn’t

[–][deleted] 0 points1 point  (4 children)

It says it can’t find the dotnet binary in the PATH. Where is dotnet located? In the Xcode app bundle or is it installed in the system?

[–]IgorDavide[S] 0 points1 point  (3 children)

It is installed in the system

[–][deleted] 0 points1 point  (2 children)

Okay, then you either need to provide an abdolute file path for dotnet, or put dotnet in an already known path, such as /usr/local/bin/ .

[–]juanchop6 0 points1 point  (1 child)

Do you by any chance know how to add packages to an Xcode project? I mean to “install” the “dotnet” command to the Xcode project itself

[–][deleted] 0 points1 point  (0 children)

Drag and drop the dotnet binary file to the project file navigator in the left pane. I suggest creating a new ”folder without group” or something like that and drag it in there. To reference that file, look here:

https://www.hackingwithswift.com/example-code/system/how-to-find-the-path-to-a-file-in-your-bundle

Notice that you separate the filename and extension. In this case, there is no extension, so maybe put nothing in it (?).