Post

Replies

Boosts

Views

Activity

NSOSStatusErrorDomain Code=-54
2021-10-15 12:26:06.427879+0800 CodeNotificationExtension[17524:630750] [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 12:26:06.428337+0800 CodeNotificationExtension[17524:630750] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2021-10-15 12:26:06.428386+0800 CodeNotificationExtension[17524:630750] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 12:26:06.428445+0800 CodeNotificationExtension[17524:630750] [Intents] +[INAppInfo appInfoWithAppProxy:] Unable to create app info with application record: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
1
0
1.9k
Oct ’21
How to show in the subtitle of the Communication Notification?
I build APNs but It show me the logs I guess THERE might be some permissions I haven't configured LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 19:01:24.734879+0800 CodeNotificationExtension[28603:929180] [default] Attempt to map database failed: permission was denied. This attempt will not be retried. 2021-10-15 19:01:24.734947+0800 CodeNotificationExtension[28603:929180] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} 2021-10-15 19:01:24.735022+0800 CodeNotificationExtension[28603:929180] [Intents] +[INAppInfo appInfoWithAppProxy:] Unable to create app info with application record: Error Domain=NSOSStatusErrorDomain Code=-54 "process may not map database" UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]}
1
0
1.4k
Oct ’21
screenshots use drawViewHierarchyInRect blocking mainthread
I use this mehtod for screenshots,but it blocking mainthread, Is there another way to replace it , { UIGraphicsBeginImageContextWithOptions(imageSize, NO, 0);   CGContextRef context = UIGraphicsGetCurrentContext();   for (UIWindow *window in [[UIApplication sharedApplication] windows]) {     CGContextSaveGState(context);     CGContextTranslateCTM(context, window.center.x, window.center.y);     CGContextConcatCTM(context, window.transform);     CGContextTranslateCTM(context, -window.bounds.size.width * window.layer.anchorPoint.x,                -window.bounds.size.height * window.layer.anchorPoint.y);     if ([window respondsToSelector:@selector(drawViewHierarchyInRect:afterScreenUpdates:)]) {       [window drawViewHierarchyInRect:window.bounds afterScreenUpdates:YES];     } else {       [window.layer renderInContext:context];     }     CGContextRestoreGState(context);   }   UIImage *image = UIGraphicsGetImageFromCurrentImageContext();   UIGraphicsEndImageContext(); } Is there an alternative way to take screenshots I need your help
0
0
580
May ’22
APNs returning 410 unregistered token
We encountered an issue where some users were unable to receive push during the overwrite installation process。 After a while it was normal again。 Checking the code shows that the registerForRemoteNotifications method is requested twice in a short period of time。 Therefore, we want to know what are the possible reasons for 410 unregistered。 Thanks。
0
0
577
Jul ’23