From 0e7de787c61b18d87b5806906e5675c27b513599 Mon Sep 17 00:00:00 2001 From: WindowsMEMZ Date: Sun, 3 Mar 2024 13:49:41 +0800 Subject: [PATCH] fixed compiling issue about watchOS --- DarockBili.dynamic/AppMain.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DarockBili.dynamic/AppMain.swift b/DarockBili.dynamic/AppMain.swift index ff06a2ec8..aa17bb26e 100644 --- a/DarockBili.dynamic/AppMain.swift +++ b/DarockBili.dynamic/AppMain.swift @@ -418,7 +418,11 @@ struct AppMainView: View { } if !isFirstOpen { + #if !os(watchOS) Mixpanel.initialize(token: "37d4aaecc64cae16353c2fe7dbb0513c", trackAutomaticEvents: false) + #else + Mixpanel.initialize(token: "37d4aaecc64cae16353c2fe7dbb0513c") + #endif // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Wow you see a token there, I'm not forget to hide it because you are no able to // do anything important by this token >_-