Posts

Post not yet marked as solved
4 Replies
976 Views
In my sandboxed MacOS app I want to access OSLogStore programmatically to fetch logs for multi-component application (app, libraries, deriver) for further analysis. According to the documentation, - https://developer.apple.com/documentation/oslog/oslogstore/3366102-local the app should have com.apple.logging.local-storeentitlement. I have added this entitlement "by hand" to the entitlement file as I I can't find a correspondent entry in the Xcode -> Sign & Capabilities interface. When I run the app, I get Unsatisfied entitlements: com.apple.logging.local-store error and the app doesn't start. If I remove the entitlement, the app can't get access to the logd subsystem. How can I add com.apple.logging.local-store to my app? Should I request this not visible via Xcode configuration UI from apple? Thanks!
Posted
by kriki44.
Last updated
.
Post not yet marked as solved
1 Replies
1.9k Views
I have application which uses BLE on MacOS. With update to macOS 11 I have noticed some differences in BLW permissions handling. First, macOS was complaining about missing NSBluetoothAlwaysUsageDescription. I have added missing key to Info.plist and upon starting the app, MacOS shows dialog requesting user permissions. When permission is granted, the app works just fine. Problem is when user deny access to Bluetooth for the app. The app doesn't have a way to query current status and request for permissions once again. If Bluetooth is On and permission is granted, CBManager.status is .poweredOn. When permission is not granted or not yet requested, the status is .unknown. It never turns to .unauthorized. Question is what is the proper way for requesting for Bluetooth Permission on MacOS?
Posted
by kriki44.
Last updated
.