skip to Main Content

Xcode – Using print() from static function in Swift

I need to use print() within a static function in Swift. The function needs to be called using an observer pattern as seen below: import Foundation @NSApplicationMain class Application: NSObject, NSApplicationDelegate { static var commandArgsObserver: NSKeyValueObservation? override init() { Application.setObserver()…

VIEW QUESTION

Change Default XCode Architecture

In Xcode 12, the default architecture for building got changed to arm64. This causes many things to not build. In this instance, running pip install psutil fails to build with an "architecture not supported error". How can I change the…

VIEW QUESTION
Back To Top
Search