Swift 5 Released and (almost) available on Fedora

Swift 5 was released as part of Apple’s update of iOS and macOS yesterday (3/25/19) and I had literally just finished submitting an update to Fedora’s Bodhi system for the previous development snapshot. I admit I was worried that there’d be some 11:59:59 change to Swift that wouldn’t make it compile properly under Fedora, but nope, it …

ZestyClip now available on the Mac App Store!

ZestyClip is now available in the Mac App Store! Although it’s not the first Mac app I’ve written, it’s the first one I decided to try to get published in Apple’s App Store. I decided to make it extra hard on myself by eschewing Xcode and Swift, but instead write it in C++ with QT; I chose this …

Undeclared Identifier in Swift after adding new file?

Spent a little too much time trying to figure out why my new Swift file with my new class was resulting in an “Undeclared Identifier” error from the compiler after adding the class as a member variable. Doing some searching resulted in a lot of basic “check for typos” posts as well as “…if it’s a framework, …

Testing Swift on Linux

I’ve forked Ray Wenderlich’s swift-algorithm-club to include a Python script, build-n-run.py that goes through all the projects, creates a linux directory there, copies the playground’s Contents.swift file to the linux directory as main.swift, along with any other non-test Swift files, then executes the swiftc compiler to build an executable then attempts to run it.  Because playgrounds are effectively interactive …

Swift 5.0 for Fedora

The first version of Swift 5.0-Dev for Fedora has been built and “works”. The package is swift-lang-5.0-0.11.20181116git201dcba.fc30.x86_64.rpm and swift-lang-runtime-5.0-0.11.20181116git201dcba.fc30.x86_64.rpm.  I’ve tested these on a Rawhide Docker image (Podman, actually, on a SilverBlue laptop), and they compile Swift programs, but the REPL fails with: error: Could not construct an expression context for the REPL So clearly there’s …