Ask coding questions

← Back to all posts
How to run swift files
HriplyiPlintus (0)

I didn't get what should I write in run button to run swift files (main.swift for example)

Answered by a5rocks (834) [earned 5 cycles]
View Answer
Comments
hotnewtop
a5rocks (834)

Try this:

run = "cd 'Project with no sense' && swiftc -o ../main main.swift"