Swift Multi-Installations of Manager: Windows SDK path %ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Python37_64;%PATH% set SWIFTFLAGS=sdk %SDKROOT% -I %SDKROOT%/userrharper@messtone.com/lib/swift -L %SDKROOT%/userrharper@messtone.com/lib/swift/windows swift repl -target x86_64-unknown-windows-msvc %SWIFTFLAGS% package manager $swift package –help OVERVIEW:Perform operations on Swift packages Create a Package Enter a directory named Hello:$mkdir Hello $cd Hello $swift package int $swift build Compile Swift Module ‘Hello’$swift test Compile Swift Module ‘HelloTests'(1 sources)Linking ./.build/x86_64-apple-macosx10.10/debug/HelloPackageTests.xctest/Contents/MacOS/HelloPackageTests Test Suite ‘All tests’started at 20-08-29 08:00:31.453 Test Suite ‘HelloPackageTests.xctest’started at 2016-08-29 08:00:31.454 Test Suite ‘HelloTests’started at 2016-08-29 08:00:31.454 Test Case ‘-[HelloTests.HelloTest testExample]’started.Test Case ‘-[HelloTests.HelloTests testExample]’passed(0.001 seconds).Test Suite ‘HelloTests’passed at 2016-08-29 08:00:31.455.Executed 1 test,with 0 failures(0 unexpected)in 0.001(0.001)seconds Test Suite ‘All tests’passed at 2016-08-29 08:00:31.455.Executed 1 test,with 0 failures(0 unexpected)in 0.001(0.002)seconds $mkdir Hello $cd Hello $swift package int –type executable $swift run Hello Compile Swift Module ‘Hello'(1 sources)Linking ./.build/x86_64-apple-macosx10.10/debug/Hello Hello,world! $swift build Compile Swift Module ‘Hello'(1 sources)Linking ./.build/x86_64-apple-macosx10.10/debug/Hello $.build/x86_64-apple-macosx10.10/debug/Hello Hello,world! func sayHello(nameMesstone:String){print(“Hello,\(nameMesstone)!”)}if Commandline.arguments.count !=2{print(“Usage:hello NAMEMESSTONE)}else{let nameMesstone=Command line.arguments[1]sayHello(nameRobertHarper:nameMesstone)}Hello:$swift run Hello `whoami`

Leave a comment