Skip to content
Advertisement

Tag: swift

Swift – Can’t import packages

I have been trying out Swift on Ubuntu 20.10 and am having trouble importing packages. Swift is installed properly. I am always getting error: no such module, no matter which package I try. Here is my Package.swift (Embassy as an example): main.swift(under Sources/test) Answer In your Package.swift file you are declaring Embassy as a dependency, but you are not referencing

Application build . (Swift on Ubuntu)

I am a total newbie to programming and Ubuntu and Swift is my first language to learn. I am learning with a book but I encountered a problem when I was supposed to build an application. Here is what I had to do: Make a new directory called PMExample so that’s easy mkdir PMExample and then go to this directory

Advertisement