Help please!! I have such struct:
struct Config {
var logging: Bool
var isServer: Bool
var isVerbose: Bool
var isVirtualMachine: Bool
init() {
logging = false
isServer = false
isVerbose = false
isVirtualMachine = false
}
}
var config = Config.init()
The values for config are loaded in the main file. There at the main file can read it all, but here begins my trouble, that I am trying to figure out about a week (actually I found this point as the offender line just today). Somewhere in another file of the project when trying to read a property of that struct it will crash with a trace trap error.
The weird is that is happening, so far, only with SOME, not all, Mac OS Monterey versions and I all saw that if Xcode is installed on the Monterey the program will work (but this is not science proof). On my notebook running Mac OS Monterey, without Xcode it works! Other client's computer it will crash, and so on.
So, it will run without any errors with some macOS but will crash in others.
I really don't know how to fix it or what can be done. This program was running since 2019 and after I need to make some changes my client asked for this is happening. I wasn't in touch with Swift since that time, so I forget and lost something here.