Add logs app group entitlements which fixes the log collection crash

This commit is contained in:
QuentinArguillere 2023-12-09 23:16:44 +01:00
parent 4e44d764f8
commit 76b7681bf4
2 changed files with 2 additions and 2 deletions

View file

@ -9,6 +9,7 @@
<string>group.belledonne-communications.linphone</string>
<string>group.org.linphone.phone.linphoneExtension</string>
<string>group.org.linphone.phone.msgNotification</string>
<string>group.org.linphone.phone.logs</string>
</array>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>

View file

@ -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<Int8>(mutating: (Config.appGroupName as NSString).utf8String)))
Core.setLogCollectionPath(path: Factory.Instance.getDownloadDir(context: UnsafeMutablePointer<Int8>(mutating: (Config.appGroupName as NSString).utf8String)))
Core.enableLogCollection(state: LogCollectionState.Enabled)
setMask()
LoggingService.Instance.addDelegate(delegate: self)