Do Swift applications work on macOS 10.9 / iOS 7 and older versions?
Hi everyone! I just started learning Swift and am writing my first application for macOS. I ran into a problem: my project builds and works fine on macOS 10.15 (Catalina), but when I tried to run it on an old MacBook with OS X 10.9 (Mavericks), it crashes on launch with the error "dyld: Library not loaded".\n\nI started digging and realized it's related to using Swift. In Xcode, I set the minimum Deployment Target to 10.9, but the app still doesn't launch. I'm using Swift 5 and Xcode 12.\n\nHere's a sample of the simple code I'm using:\n\n```swift\nimport Cocoa\n\nclass ViewController: NSViewController {\n override func viewDidLoad() {\n super.viewDidLoad()\n \n let message = "Hello, world!"\n print(message)\n```
No answers yet.
Log in to leave an answer