From 76b7681bf45f6ea74eb3990628b82c0288e1d439 Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Sat, 9 Dec 2023 23:16:44 +0100 Subject: [PATCH] Add logs app group entitlements which fixes the log collection crash --- Linphone/Linphone.entitlements | 1 + Linphone/Utils/Log.swift | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Linphone/Linphone.entitlements b/Linphone/Linphone.entitlements index 7fe270b49..5e9048f46 100644 --- a/Linphone/Linphone.entitlements +++ b/Linphone/Linphone.entitlements @@ -9,6 +9,7 @@ group.belledonne-communications.linphone group.org.linphone.phone.linphoneExtension group.org.linphone.phone.msgNotification + group.org.linphone.phone.logs com.apple.security.files.user-selected.read-only diff --git a/Linphone/Utils/Log.swift b/Linphone/Utils/Log.swift index 37a088142..25aecc8e5 100644 --- a/Linphone/Utils/Log.swift +++ b/Linphone/Utils/Log.swift @@ -34,8 +34,7 @@ class Log: LoggingServiceDelegate { private init() { service.domain = Bundle.main.bundleIdentifier! - // CRASH TO BE FIXED ?? - //Core.setLogCollectionPath(path: Factory.Instance.getDownloadDir(context: UnsafeMutablePointer(mutating: (Config.appGroupName as NSString).utf8String))) + Core.setLogCollectionPath(path: Factory.Instance.getDownloadDir(context: UnsafeMutablePointer(mutating: (Config.appGroupName as NSString).utf8String))) Core.enableLogCollection(state: LogCollectionState.Enabled) setMask() LoggingService.Instance.addDelegate(delegate: self)