{"id":16833518,"url":"https://github.com/ole/oslogstoretest","last_synced_at":"2025-03-23T15:31:35.156Z","repository":{"id":136294974,"uuid":"274969557","full_name":"ole/OSLogStoreTest","owner":"ole","description":"Test app for evaluating if apps can access their own OSLog logs via OSLogStore.","archived":false,"fork":false,"pushed_at":"2020-09-04T18:35:13.000Z","size":25,"stargazers_count":30,"open_issues_count":1,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-18T21:54:27.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-25T16:54:08.000Z","updated_at":"2024-02-07T06:16:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff6f3330-c786-4c64-af05-997d5e7348bd","html_url":"https://github.com/ole/OSLogStoreTest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FOSLogStoreTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FOSLogStoreTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FOSLogStoreTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FOSLogStoreTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ole","download_url":"https://codeload.github.com/ole/OSLogStoreTest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245122842,"owners_count":20564387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T11:54:30.995Z","updated_at":"2025-03-23T15:31:35.144Z","avatar_url":"https://github.com/ole.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSLogStoreTest\n\nTest app for evaluating if apps can access their own OSLog logs via [`OSLogStore`](https://developer.apple.com/documentation/oslog/oslogstore?language=objc) in iOS 14 and/or macOS 11.0.\n\n## iOS 14\n\nI can’t get it to work on an iOS device running iOS 14.0 beta 1–6. I can instantiate an `OSLogStore` and `OSLogEnumerator`, but the enumerator doesn’t provide any log entries (unless I’m holding it wrong), and I’m seeing this error message in the Xcode console:\n\nOn iOS 14.0 beta 7 the sample crashes with:\n```\n+[OSLogStore storeWithScope:error:]: unrecognized selector sent to class 0x1fceb5728\n```\nGiven Xcode 12 beta 7 isn't released yet, I dumped the OSLogStore classs and it would seem the method was removed without an obvious replacement to call.\n\n```\nError Error Domain=NSCocoaErrorDomain Code=4099\n\"The connection to service on pid 0 named com.apple.OSLogService\nwas invalidated.\" UserInfo={NSDebugDescription=The connection to\nservice on pid 0 named com.apple.OSLogService was invalidated.}\n```\n\nWhen running in the iOS simulator, the error message is different:\n\n```\nError Domain=OSLogErrorDomain Code=9\n\"Client lacks entitlement to perform operation\"\nUserInfo={NSLocalizedDescription=Client lacks entitlement\nto perform operation, _OSLogErrorInternalCode=14}\n```\n\nApple engineers have confirmed this is a bug. I hope it will get fixed before the final iOS 14 release.\n\n* [Tweet by Brandon Titus](https://twitter.com/bjtitus/status/1276211162506424323)\n* [Tweet by Quinn “The Eskimo!”](https://twitter.com/justkwin/status/1276271590360199172)\n\n## macOS 11.0 Big Sur\n\nThe code works as expected in the macOS target.\n\n## More about OSLog in iOS 14 and macOS 11\n\nSee Peter Steinberger's article: [Logging in Swift](https://steipete.com/posts/logging-in-swift/) (08/2020)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Foslogstoretest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fole%2Foslogstoretest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Foslogstoretest/lists"}