Closed acastruc closed 1 month ago
It might be helpful to try building without lots of extra parameters in case it cleans things up - though I doubt it will.
It may relate to how you are setting up the runloop as the app delegate controls application launch. Mixing GUI libraries can be problematic so you will likely need to share your setup code as well. In concept this can be done, however, as this systray project runs alongside Fyne and others well.
Im wondering if
CGO_CFLAGS=-mmacosx-version-min=10.13 CGO_ENABLED=1 CGO_LDFLAGS=-framework UniformTypeIdentifiers -mmacosx-version-min=10.13
is the culprit. I need to see if I can set mmacosx-version-min to something higher
FYI I managed to get this to work by forking branch of systray and
dispatch_async(dispatch_get_main_queue(), ^{
// do UI work here
});
Ah! I guess wails also has an Objective-C class named "AppDelegate" then?
Correct. That was the easier of the changes ;)
I thought this was an issue with Xcode 15, I see it across all my Go projects.
All your Go projects? if the only graphical dependency you have is the systray (and Fyne?) it should not be a problem. Or does every one of your Go projects also include wails?
Projects linking through cgo.
I think perhaps you are referring to a different duplicate symbol than the OP.
Yes, I'm referring to this general problem: https://github.com/golang/go/issues/61229#issuecomment-1988965927. However those are warnings, and I see OP has errors.
Yes, I'm referring to this general problem: golang/go#61229 (comment). However those are warnings, and I see OP has errors.
As you can see from the main entry of this issue the reported problem is that Systray uses the fairly generic AppDelegate
class name:
duplicate symbol '_OBJCCLASS$_AppDelegate' in:
Building with wailsv2 on mac (11) I get this error
Anyone seen this before? fwiw here are my build flags