vknabel / vscode-swift-development-environment

New home of Swift Development Environment for VS Code
https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-swift-development-environment
Apache License 2.0
175 stars 14 forks source link

Run default target doesn't work #94

Closed congnd closed 3 years ago

congnd commented 3 years ago

Thanks for such a great tool!

I'm want to use the Run Default Target command to quickly run the program but it doesn't seem to work as expected. From what I can see in the output, it seems that there was no target was sent to the swift run command.

running package…
pid: 862 - /usr/bin/swift run 
error: no executable product named ''
Process exited. code=1 signal=null
vknabel commented 3 years ago

Hey @congnd! Thanks for the kind words!

Could you paste your Package.swift-file (better: or link an open source repo)? We try to have a look on this soon. 👍

congnd commented 3 years ago

hey @vknabel there you go: https://github.com/congnd/FMPhotoPicker

Thanks for your rapid response.

vknabel commented 3 years ago

Hey @congnd!

The latest 2.11.2 release now fixes your problem. Though as your linked repository does not contain any executables, it will still fail, but with a different error:

running package…
pid: 17701 - /usr/bin/swift run
error: no executable product available
Process exited. code=1 signal=null