diff --git a/libs/kiplatform/osx/environment.mm b/libs/kiplatform/osx/environment.mm index 88aa464a12..848c93a366 100644 --- a/libs/kiplatform/osx/environment.mm +++ b/libs/kiplatform/osx/environment.mm @@ -66,5 +66,10 @@ wxString KIPLATFORM::ENV::GetUserConfigDir() wxString KIPLATFORM::ENV::GetUserCacheDir() { - return wxStandardPaths::Get().GetUserDir( wxStandardPaths::Dir::Dir_Cache ); + NSURL* url = [[NSFileManager defaultManager] URLForDirectory:NSCachesDirectory + inDomain:NSUserDomainMask + appropriateForURL:nil + create:NO error:nil]; + + return wxCFStringRef::AsString((CFStringRef)url.path); } \ No newline at end of file