Updating selectors failed with error domain nscocoaerrordomain code 4099

[Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalida...

Howdy y’all,
I haven’t seen any activity in this thread in a while and I still haven’t received any further information to help reproduce this issue.

Regardless, we recently released the major version upgrade to beta where the initialization process was slightly changed so this issue may be resolved after upgrading.

Upgrading to «onesignal-cordova-plugin»: «^3.0.0-beta1» doesn’t seem to help. White screen and no additional info.

2021-05-18 15:57:04.316314-0500 MyAppName[11433:5751303] WARNING: appId set, but please call setLaunchOptions(launchOptions) to complete OneSignal init!
2021-05-18 15:57:04.318333-0500 MyAppName[11433:5751303] Apache Cordova native platform version 5.1.1 is starting.
2021-05-18 15:57:04.318385-0500 MyAppName[11433:5751303] Multi-tasking -> Device: YES, App: YES
2021-05-18 15:57:04.322341-0500 MyAppName[11433:5751303] CDVWKWebViewEngine: trying to inject XHR polyfill
2021-05-18 15:57:04.426857-0500 MyAppName[11433:5751303] CDVWKWebViewEngine will reload WKWebView if required on resume
2021-05-18 15:57:04.426966-0500 MyAppName[11433:5751303] Using Ionic WKWebView
2021-05-18 15:57:04.427078-0500 MyAppName[11433:5751303] [CDVTimer][console] 0.030041ms
2021-05-18 15:57:04.427129-0500 MyAppName[11433:5751303] [CDVTimer][handleopenurl] 0.015020ms
2021-05-18 15:57:04.427718-0500 MyAppName[11433:5751303] [CDVTimer][intentandnavigationfilter] 0.566006ms
2021-05-18 15:57:04.427763-0500 MyAppName[11433:5751303] [CDVTimer][gesturehandler] 0.015974ms
2021-05-18 15:57:04.428442-0500 MyAppName[11433:5751303] [CDVTimer][statusbar] 0.653028ms
2021-05-18 15:57:04.428496-0500 MyAppName[11433:5751303] CDVIonicKeyboard: resize mode 1
2021-05-18 15:57:04.430006-0500 MyAppName[11433:5751303] [CDVTimer][cdvionickeyboard] 1.538992ms
2021-05-18 15:57:04.430039-0500 MyAppName[11433:5751303] [CDVTimer][TotalPluginStartup] 3.018022ms
2021-05-18 15:57:04.518899-0500 MyAppName[11433:5751303] WF: === Starting WebFilter logging for process MyAppName
2021-05-18 15:57:04.518933-0500 MyAppName[11433:5751303] WF: _userSettingsForUser mobile: {
    filterBlacklist =     (
    );
    filterWhitelist =     (
    );
    restrictWeb = 1;
    useContentFilter = 0;
    useContentFilterOverrides = 0;
    whitelistEnabled = 0;
}
2021-05-18 15:57:04.518964-0500 MyAppName[11433:5751303] WF: _WebFilterIsActive returning: NO

Nothing further after that.

Downgrading to «onesignal-cordova-plugin»: «^2.11.3» gives me the same error, regardless of where I start the Onesignal init

2021-05-18 16:17:01.077912-0500 MyAppName[11469:5760782] Apache Cordova native platform version 5.1.1 is starting.
2021-05-18 16:17:01.077977-0500 MyAppName[11469:5760782] Multi-tasking -> Device: YES, App: YES
2021-05-18 16:17:01.082157-0500 MyAppName[11469:5760782] CDVWKWebViewEngine: trying to inject XHR polyfill
2021-05-18 16:17:01.183729-0500 MyAppName[11469:5760782] CDVWKWebViewEngine will reload WKWebView if required on resume
2021-05-18 16:17:01.183819-0500 MyAppName[11469:5760782] Using Ionic WKWebView
2021-05-18 16:17:01.183928-0500 MyAppName[11469:5760782] [CDVTimer][console] 0.021935ms
2021-05-18 16:17:01.183982-0500 MyAppName[11469:5760782] [CDVTimer][handleopenurl] 0.016928ms
2021-05-18 16:17:01.184755-0500 MyAppName[11469:5760782] [CDVTimer][intentandnavigationfilter] 0.749946ms
2021-05-18 16:17:01.184799-0500 MyAppName[11469:5760782] [CDVTimer][gesturehandler] 0.010967ms
2021-05-18 16:17:01.185891-0500 MyAppName[11469:5760782] [CDVTimer][statusbar] 1.062989ms
2021-05-18 16:17:01.185966-0500 MyAppName[11469:5760782] CDVIonicKeyboard: resize mode 1
2021-05-18 16:17:01.187599-0500 MyAppName[11469:5760782] [CDVTimer][cdvionickeyboard] 1.671910ms
2021-05-18 16:17:01.187635-0500 MyAppName[11469:5760782] [CDVTimer][TotalPluginStartup] 3.760934ms
2021-05-18 16:17:01.257198-0500 MyAppName[11469:5760782] WF: === Starting WebFilter logging for process MyAppName
2021-05-18 16:17:01.257241-0500 MyAppName[11469:5760782] WF: _userSettingsForUser mobile: {
    filterBlacklist =     (
    );
    filterWhitelist =     (
    );
    restrictWeb = 1;
    useContentFilter = 0;
    useContentFilterOverrides = 0;
    whitelistEnabled = 0;
}
2021-05-18 16:17:01.257291-0500 MyAppName[11469:5760782] WF: _WebFilterIsActive returning: NO
2021-05-18 16:17:31.389933-0500 MyAppName[11469:5761187] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 524 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 524 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2021-05-18 16:17:31.391805-0500 MyAppName[11469:5761187] ERROR: HTTP Request (OSRequestRegisterUser) must contain app_id parameter
2021-05-18 16:17:31.392010-0500 MyAppName[11469:5761187] Request <OSRequestRegisterUser: 0x2802b0060> fail result error Error Domain=OneSignalError Code=-1 "(null)" UserInfo={error=HTTP Request (OSRequestRegisterUser) must contain app_id parameter}
2021-05-18 16:17:31.392144-0500 MyAppName[11469:5760782] ERROR: Encountered error during push registration with OneSignal: Error Domain=OneSignalError Code=-1 "(null)" UserInfo={error=HTTP Request (OSRequestRegisterUser) must contain app_id parameter}
2021-05-18 16:17:31.392220-0500 MyAppName[11469:5760782] ERROR: Encountered error during email registration with OneSignal: (null)

Initialization code for Ionic V1 in angular.module( …. ).run( …

$ionicPlatform.ready(function(){

                    if(window.plugins){

                        window.plugins.OneSignal.setLogLevel({logLevel: 6, visualLevel: 0});

                        console.log("Registering OneSignal");
                        window.plugins.OneSignal
                            .startInit(OneSignal.id)
                            .inFocusDisplaying(window.plugins.OneSignal.OSInFocusDisplayOption.None)
                            .handleNotificationReceived(function (jsonData) {
                                console.log("Notification received.  Emitting alert");
                                AlertService.increment();

                                if(jsonData && jsonData.payload && jsonData.payload.body){
                                    var msg = jsonData.payload.body;
                                    if(msg.toLowerCase().indexOf('prompt') > -1){
                                        Error("Prompt", msg);
                                    }
                                }

                                navigator.notification.beep(1);
                                navigator.notification.vibrate(400);

                                //console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData));
                            })
                            .endInit();

                        window.plugins.OneSignal.getIds(function (ids) {
                            //var debugString = JSON.stringify(ids, null, 2);
                            console.log("Setting $rootScope.deviceId");
                            //console.log(debugString);
                            $rootScope.deviceId = ids;
                        });
                    } .... // and so on

Setting the log level didn’t do anything either from what I can tell.

Please let me know how I can help further. This is pretty important to us.

PS: Mac mini (m1, 2020) macOS Big Sur Version 11.0.1

My app says it has built successfully but shows the error «No bundle URL Present» with the following in the log:

 [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}

Using Xcode 13, and React Native 65.1 on and iOS 15 Iphone 12.

Can anyone help?

Error log in full:

2021-10-02 15:22:54.660199+0100 myracnative[556:74795] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2021-10-02 15:22:54.860373+0100 myracnative[556:74799] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2021-10-02 15:22:54.871831+0100 myracnative[556:74776] [connection] nw_socket_handle_socket_event [C2.1:2] Socket SO_ERROR [61: Connection refused]
2021-10-02 15:22:54.876680+0100 myracnative[556:74776] [connection] nw_socket_handle_socket_event [C2.2:2] Socket SO_ERROR [61: Connection refused]
2021-10-02 15:22:54.877869+0100 myracnative[556:74776] Connection 2: encountered error(1:61)
2021-10-02 15:22:54.879782+0100 myracnative[556:74776] Task <135B0C12-BD4A-4CF4-8C25-81BCFCE70828>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])
2021-10-02 15:22:54.886866+0100 myracnative[556:74799] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service with pid 90 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
2021-10-02 15:22:54.889475+0100 myracnative[556:74776] Task <135B0C12-BD4A-4CF4-8C25-81BCFCE70828>.<1> finished with error [-1004] Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={_kCFStreamErrorCodeKey=61, NSUnderlyingError=0x282e36a30 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <135B0C12-BD4A-4CF4-8C25-81BCFCE70828>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
), NSLocalizedDescription=Could not connect to the server., NSErrorFailingURLStringKey=http://localhost:8081/status, NSErrorFailingURLKey=http://localhost:8081/status, _kCFStreamErrorDomainKey=1}

I have an issue where my Internet Accounts preferences pane won’t load and when I try to sign-out of my iCloud account, it tells me that Parental Controls are turned on (which they aren’t). You will see a bunch of Calendar errors because I was following the advise of another thread and cleared out the contents of the Mail and Calendar folders in ~Library but this didn’t help. I have exhausted all of the threads that I can find. When I create a new profile on my mac, it can connect just fine.

When I try to open the Internet Accounts pane in Preferences I get the following logs:

7/21/14 8:29:48.347 PM com.apple.preferences.internetaccounts.remoteservice[1022]: NSViewServiceApplication discovered remote host PID 724

timestamp: 20:29:48.345 Monday 21 July 2014

process/thread/queue: com.apple.preferences.internetaccounts.remoteservice (1022) / 0x7fff74880300 / com.apple.main-thread

code: line 978 of /SourceCache/ViewBridge/ViewBridge-81/NSViewServiceApplication.m in +[NSViewServiceApplication learnRemotePID]

7/21/14 8:29:49.371 PM com.apple.preferences.internetaccounts.remoteservice[1022]: Failed to connect (_summaryIcon) outlet from (IAMailAccountSetupController) to (NSImageView): missing setter or instance variable

7/21/14 8:29:49.825 PM com.apple.preferences.internetaccounts.remoteservice[1022]: [AOSAccounts] : [ReportAuthErrorNotification] : AOSTransactionGetError The operation couldn’t be completed. (AOSErrorDomain error 5002.) reason (null)

7/21/14 8:29:49.949 PM com.apple.internetaccounts[1023]: Additional Logging , array retured in signedInAccounts is (

«<IAAccount: 0x600000050170> — uid: C1EEA183-BBDE-42CC-A2B9-46259412276C; loginName:yahoo.com; provider: com.apple.account.icloud; parent: (null)ntaccount ID: yahoo.com — com.apple.account.icloud — ntprovider attrs: {n «com.apple.InternetAccounts.loginName» = «yahoo.com«;n «com.apple.InternetAccounts.provider» = «com.apple.account.icloud»;n fullName = «yahoo.com«;n}»

)

7/21/14 8:29:50.006 PM com.apple.internetaccounts[1023]: Adding listener

7/21/14 8:29:50.006 PM com.apple.internetaccounts[1023]: Returning accountUIDs: (

)

7/21/14 8:29:50.030 PM com.apple.internetaccounts[1023]: SACShieldWindowShowing:925: ERROR: NULL response

7/21/14 8:29:50.038 PM com.apple.internetaccounts[1023]: [IAPlugin] All account UIDs prior to rebuilding cache: (null)

7/21/14 8:29:50.039 PM com.apple.internetaccounts[1023]: [IAPlugin] All account UIDs after rebuilding cache: {(

)}

7/21/14 8:29:50.175 PM com.apple.internetaccounts[1023]: [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 «Couldn’t communicate with a helper application.» (The connection to service named com.apple.CalendarAgent.proxy was invalidated.) UserInfo=0x6000002736c0 {NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (

0 CalendarAgentLink 0x00007fff90adb543 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47

1 CalendarPersistence 0x00007fff88990a02 +[CalPersistence _startCoreDataXPCServer:] + 198

2 CalendarPersistence 0x00007fff88991455 __87+[CalPersistence asyncConnectToPersistenceWithClientXPCWaitingOnGroup:completionBlock:]_block_in voke342 + 130

3 libdispatch.dylib 0x00007fff8bde6c9d _dispatch_call_block_and_release + 12

4 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

5 libdispatch.dylib 0x00007fff8bde8d38 _dispatch_async_redirect_invoke + 621

6 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

7 libdispatch.dylib 0x00007fff8bde56fd _dispatch_root_queue_drain + 881

8 libdispatch.dylib 0x00007fff8bdf19cb _dispatch_worker_thread3 + 71

9 libsystem_pthread.dylib 0x00007fff8ae949dc _pthread_wqthread + 663

10 libsystem_pthread.dylib 0x00007fff8ae92809 start_wqthread + 13

)]

7/21/14 8:29:50.176 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying…]

7/21/14 8:29:50.176 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Retry Attempt 1]

7/21/14 8:29:50.178 PM com.apple.internetaccounts[1023]: [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 «Couldn’t communicate with a helper application.» (The connection to service named com.apple.CalendarAgent.proxy was invalidated.) UserInfo=0x600000274900 {NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (

0 CalendarAgentLink 0x00007fff90adb543 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47

1 CalendarPersistence 0x00007fff88990a02 +[CalPersistence _startCoreDataXPCServer:] + 198

2 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

3 CalendarPersistence 0x00007fff88991455 __87+[CalPersistence asyncConnectToPersistenceWithClientXPCWaitingOnGroup:completionBlock:]_block_in voke342 + 130

4 libdispatch.dylib 0x00007fff8bde6c9d _dispatch_call_block_and_release + 12

5 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

6 libdispatch.dylib 0x00007fff8bde8d38 _dispatch_async_redirect_invoke + 621

7 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

8 libdispatch.dylib 0x00007fff8bde56fd _dispatch_root_queue_drain + 881

9 libdispatch.dylib 0x00007fff8bdf19cb _dispatch_worker_thread3 + 71

10 libsystem_pthread.dylib 0x00007fff8ae949dc _pthread_wqthread + 663

11 libsystem_pthread.dylib 0x00007fff8ae92809 start_wqthread + 13

)]

7/21/14 8:29:50.179 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying…]

7/21/14 8:29:50.179 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Retry Attempt 2]

7/21/14 8:29:50.233 PM com.apple.internetaccounts[1023]: [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 «Couldn’t communicate with a helper application.» (The connection to service named com.apple.CalendarAgent.proxy was invalidated.) UserInfo=0x60800027f680 {NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (

0 CalendarAgentLink 0x00007fff90adb543 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47

1 CalendarPersistence 0x00007fff88990a02 +[CalPersistence _startCoreDataXPCServer:] + 198

2 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

3 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

4 CalendarPersistence 0x00007fff88991455 __87+[CalPersistence asyncConnectToPersistenceWithClientXPCWaitingOnGroup:completionBlock:]_block_in voke342 + 130

5 libdispatch.dylib 0x00007fff8bde6c9d _dispatch_call_block_and_release + 12

6 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

7 libdispatch.dylib 0x00007fff8bde8d38 _dispatch_async_redirect_invoke + 621

8 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

9 libdispatch.dylib 0x00007fff8bde56fd _dispatch_root_queue_drain + 881

10 libdispatch.dylib 0x00007fff8bdf19cb _dispatch_worker_thread3 + 71

11 libsystem_pthread.dylib 0x00007fff8ae949dc _pthread_wqthread + 663

12 libsystem_pthread.dylib 0x00007fff8ae92809 start_wqthread + 13

)]

7/21/14 8:29:50.234 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying…]

7/21/14 8:29:50.234 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Retried Attempt 3]

7/21/14 8:29:50.287 PM com.apple.internetaccounts[1023]: [Warning] IMAccount: 0x7f92b3d0f390 [ID: 24F9D443-8B3D-4288-B71D-A70DC07274E9 Service: IMService[Jabber] Login: gmail.com Active: YES LoginStatus: Offline]: Couldn’t load service icon from (null)

7/21/14 8:29:50.287 PM com.apple.internetaccounts[1023]: [Warning] IMAccount: 0x7f92b3d0f390 [ID: 24F9D443-8B3D-4288-B71D-A70DC07274E9 Service: IMService[Jabber] Login: gmail.com Active: YES LoginStatus: Offline]: Couldn’t load service icon from (null)

7/21/14 8:29:50.737 PM com.apple.internetaccounts[1023]: [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 «Couldn’t communicate with a helper application.» (The connection to service named com.apple.CalendarAgent.proxy was invalidated.) UserInfo=0x60000026bdc0 {NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (

0 CalendarAgentLink 0x00007fff90adb543 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47

1 CalendarPersistence 0x00007fff88990a02 +[CalPersistence _startCoreDataXPCServer:] + 198

2 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

3 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

4 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

5 CalendarPersistence 0x00007fff88991455 __87+[CalPersistence asyncConnectToPersistenceWithClientXPCWaitingOnGroup:completionBlock:]_block_in voke342 + 130

6 libdispatch.dylib 0x00007fff8bde6c9d _dispatch_call_block_and_release + 12

7 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

8 libdispatch.dylib 0x00007fff8bde8d38 _dispatch_async_redirect_invoke + 621

9 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

10 libdispatch.dylib 0x00007fff8bde56fd _dispatch_root_queue_drain + 881

11 libdispatch.dylib 0x00007fff8bdf19cb _dispatch_worker_thread3 + 71

12 libsystem_pthread.dylib 0x00007fff8ae949dc _pthread_wqthread + 663

13 libsystem_pthread.dylib 0x00007fff8ae92809 start_wqthread + 13

)]

7/21/14 8:29:50.737 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying…]

7/21/14 8:29:50.738 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Retried Attempt 4]

7/21/14 8:29:52.242 PM com.apple.internetaccounts[1023]: [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.proxy resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 «Couldn’t communicate with a helper application.» (The connection to service named com.apple.CalendarAgent.proxy was invalidated.) UserInfo=0x600000462680 {NSDebugDescription=The connection to service named com.apple.CalendarAgent.proxy was invalidated.} (

0 CalendarAgentLink 0x00007fff90adb543 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47

1 CalendarPersistence 0x00007fff88990a02 +[CalPersistence _startCoreDataXPCServer:] + 198

2 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

3 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

4 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

5 CalendarPersistence 0x00007fff88990e95 +[CalPersistence _startCoreDataXPCServer:] + 1369

6 CalendarPersistence 0x00007fff88991455 __87+[CalPersistence asyncConnectToPersistenceWithClientXPCWaitingOnGroup:completionBlock:]_block_in voke342 + 130

7 libdispatch.dylib 0x00007fff8bde6c9d _dispatch_call_block_and_release + 12

8 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

9 libdispatch.dylib 0x00007fff8bde8d38 _dispatch_async_redirect_invoke + 621

10 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

11 libdispatch.dylib 0x00007fff8bde56fd _dispatch_root_queue_drain + 881

12 libdispatch.dylib 0x00007fff8bdf19cb _dispatch_worker_thread3 + 71

13 libsystem_pthread.dylib 0x00007fff8ae949dc _pthread_wqthread + 663

14 libsystem_pthread.dylib 0x00007fff8ae92809 start_wqthread + 13

)]

7/21/14 8:29:52.243 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Tried to connect to XPC persistence, but connection was invalidated, retrying…]

7/21/14 8:29:52.243 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Retried too many times, giving up.]

7/21/14 8:29:52.244 PM com.apple.internetaccounts[1023]: [com.apple.calendar.store.log] [Couldn’t start the XPC store server. Error Domain=CalPersistenceCreationDomain Code=3 «Could not create XPC connection to the CalendarAgent, connection interrupted or invalidated more than 5 times» UserInfo=0x60800027cb00 {NSLocalizedDescription=Could not create XPC connection to the CalendarAgent, connection interrupted or invalidated more than 5 times}]

7/21/14 8:29:52.249 PM com.apple.internetaccounts[1023]: [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.store resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 «Couldn’t communicate with a helper application.» (The connection to service named com.apple.CalendarAgent.store was invalidated.) UserInfo=0x600000469800 {NSDebugDescription=The connection to service named com.apple.CalendarAgent.store was invalidated.} (

0 CalendarAgentLink 0x00007fff90adb543 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47

1 CalendarStore 0x00007fff8374b673 +[CalCalendarStore defaultCalendarStore] + 256

2 Calendar 0x00000001148d513c Calendar + 12604

3 com.apple.internetaccounts 0x000000010fc14f63 main + 18536

4 InternetAccounts 0x00007fff8e83556f __58-[IADataPluginController plugin:performBlock:withTimeOut:]_block_invoke + 401

5 libdispatch.dylib 0x00007fff8bde6c9d _dispatch_call_block_and_release + 12

6 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

7 libdispatch.dylib 0x00007fff8bde60d0 _dispatch_queue_drain + 1059

8 libdispatch.dylib 0x00007fff8bde76c8 _dispatch_queue_invoke + 151

9 libdispatch.dylib 0x00007fff8bde546f _dispatch_root_queue_drain + 227

10 libdispatch.dylib 0x00007fff8bdf19cb _dispatch_worker_thread3 + 71

11 libsystem_pthread.dylib 0x00007fff8ae949dc _pthread_wqthread + 663

12 libsystem_pthread.dylib 0x00007fff8ae92809 start_wqthread + 13

)]

7/21/14 8:29:52.250 PM com.apple.internetaccounts[1023]: [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.store resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 «Couldn’t communicate with a helper application.» (The connection to service named com.apple.CalendarAgent.store was invalidated.) UserInfo=0x600000469800 {NSDebugDescription=The connection to service named com.apple.CalendarAgent.store was invalidated.} (

0 CalendarAgentLink 0x00007fff90adb543 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47

1 CalendarStore 0x00007fff83750c4f -[CalCalendarStore(CalCalendarStore_Private) groups] + 156

2 Calendar 0x00000001148d5168 Calendar + 12648

3 com.apple.internetaccounts 0x000000010fc14f63 main + 18536

4 InternetAccounts 0x00007fff8e83556f __58-[IADataPluginController plugin:performBlock:withTimeOut:]_block_invoke + 401

5 libdispatch.dylib 0x00007fff8bde6c9d _dispatch_call_block_and_release + 12

6 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

7 libdispatch.dylib 0x00007fff8bde60d0 _dispatch_queue_drain + 1059

8 libdispatch.dylib 0x00007fff8bde76c8 _dispatch_queue_invoke + 151

9 libdispatch.dylib 0x00007fff8bde546f _dispatch_root_queue_drain + 227

10 libdispatch.dylib 0x00007fff8bdf19cb _dispatch_worker_thread3 + 71

11 libsystem_pthread.dylib 0x00007fff8ae949dc _pthread_wqthread + 663

12 libsystem_pthread.dylib 0x00007fff8ae92809 start_wqthread + 13

)]

7/21/14 8:29:52.251 PM com.apple.internetaccounts[1023]: [com.apple.calendar.agentLink.xpc] [Creating a remote proxy object for com.apple.CalendarAgent.store resulted in an invalid connection. The connection will be removed. Error Domain=NSCocoaErrorDomain Code=4099 «Couldn’t communicate with a helper application.» (The connection to service named com.apple.CalendarAgent.store was invalidated.) UserInfo=0x600000469800 {NSDebugDescription=The connection to service named com.apple.CalendarAgent.store was invalidated.} (

0 CalendarAgentLink 0x00007fff90adb543 -[CalAgentLink _remoteObjectWithErrorBlock:] + 47

1 CalendarStore 0x00007fff83750c4f -[CalCalendarStore(CalCalendarStore_Private) groups] + 156

2 Reminders 0x0000000114890208 Reminders + 12808

3 com.apple.internetaccounts 0x000000010fc14f63 main + 18536

4 InternetAccounts 0x00007fff8e83556f __58-[IADataPluginController plugin:performBlock:withTimeOut:]_block_invoke + 401

5 libdispatch.dylib 0x00007fff8bde6c9d _dispatch_call_block_and_release + 12

6 libdispatch.dylib 0x00007fff8bde2f53 _dispatch_client_callout + 8

7 libdispatch.dylib 0x00007fff8bde60d0 _dispatch_queue_drain + 1059

8 libdispatch.dylib 0x00007fff8bde76c8 _dispatch_queue_invoke + 151

9 libdispatch.dylib 0x00007fff8bde546f _dispatch_root_queue_drain + 227

10 libdispatch.dylib 0x00007fff8bdf19cb _dispatch_worker_thread3 + 71

11 libsystem_pthread.dylib 0x00007fff8ae949dc _pthread_wqthread + 663

12 libsystem_pthread.dylib 0x00007fff8ae92809 start_wqthread + 13

)]

7/21/14 8:30:09.810 PM System Preferences[724]: ### com.apple.preferences.internetaccounts instantiatePrefPaneObject exception:proxy-communications-error: Error Domain=NSCocoaErrorDomain Code=4097 «Couldn’t communicate with a helper application.» (connection from pid 0) UserInfo=0x600000670240 {NSDebugDescription=connection from pid 0}

<Email Edited by Host>

#ios #swift #amazon-web-services #aws-amplify

Вопрос:

я создаю новое приложение для iOS с помощью aws amplify, и я получаю странную ошибку. Во-первых, вот функции, которые я вызываю, как написано:

 import Foundation
import Combine
import Amplify

enum AuthState {
    case signUp
    case login
    case confirmCode(username:  String)
    case session (user: AuthUser)
    case firstTime
}

final class SessionManager: ObservableObject {
    @Published var authState: AuthState = .firstTime
    
    func getCurrentAuthUser() {
        if let user = Amplify.Auth.getCurrentUser() {
            authState = .session(user: user)
        } else {
            authState = .login
        }
    }
    
    func showSignUpView()
    {
        authState = .signUp
    }
    
    func showLoginView()
    {
        authState = .login
    }
    
    func signUp(username: String, password: String, email: String) -> AnyCancellable {
        
        let userAttributes = [AuthUserAttribute(.email, value: email)]
        let options = AuthSignUpRequest.Options(userAttributes: userAttributes)
        
        let sink = Amplify.Auth.signUp(
            
            username: username,
            password: password,
            options: options)
          
            .resultPublisher
            .sink {
                if case let .failure(authError) = $0 {
                    print("An error occurred while registering a user (authError)")
                }
            }
            receiveValue: { signUpResult in
                if case let .confirmUser(deliveryDetails, _) = signUpResult.nextStep {
                    print("Delivery details (String(describing: deliveryDetails))")
                    DispatchQueue.main.async {
                        self.authState = .confirmCode(username: username)
                    }
                    
                } else {
                    print("Signup Complete")
                }

            }
        return sink
    }
    func confirmSignUp(for username: String, with confirmationCode: String) -> AnyCancellable {
        Amplify.Auth.confirmSignUp(for: username, confirmationCode: confirmationCode)
            .resultPublisher
            .sink {
                if case let .failure(authError) = $0 {
                    print("An error occurred while confirming sign up (authError)")
                }
            }
            receiveValue: { _ in
                
                DispatchQueue.main.async {
                    self.showLoginView()
                }
                print("Confirm signUp succeeded")
                
                
            }
    }
    
}
 

И они вызываются простым представлением createaccount здесь:

 import SwiftUI
import Amplify
import AmplifyPlugins
import Combine

struct CreateAccount: View {
  
    @EnvironmentObject var sessionManager: SessionManager
    
    @State var username = ""
    @State var email = "";
    @State var selection: Int? = nil
    var body: some View {
        
        VStack {
            TextField("Username", text: $username).border(/*@START_MENU_TOKEN@*/Color.black/*@END_MENU_TOKEN@*/, width: /*@START_MENU_TOKEN@*/1/*@END_MENU_TOKEN@*/)
            TextField("Email", text: $email).border(/*@START_MENU_TOKEN@*/Color.black/*@END_MENU_TOKEN@*/, width: /*@START_MENU_TOKEN@*/1/*@END_MENU_TOKEN@*/)
            
            Button ( action: {
                
                sessionManager.signUp (
                    
                    username: username,
                    password: "dummy", email: email
                    
                    )
                
            })  {
                        Text("Submit")
            }
        
            }
            
        }
     
    }
    
    
    
    


struct CreateAccount_Previews: PreviewProvider {
    static var previews: some View {
        CreateAccount(username: "Johnny")
    }
}
 

Однако при попытке зарегистрировать пользователя я получаю эту ошибку в консоли:

 [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 86 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 86 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}
 

Любая помощь была бы очень признательна в раскрытии того, где я здесь ошибаюсь. Спасибо!

Комментарии:

1. Я не понимаю, где вы на самом деле используете результат раковины? Вы не храните в сумке, вы не используете ее в пользовательском интерфейсе. Поскольку вы не используете результат приемника, он немедленно освобождается, отсюда и ошибка.

2. Я только что скопировал код из документации AWS Amplify, поэтому я не уверен, что вы имеете в виду. Не могли бы вы подробнее остановиться на этом?

2019-11-17 16:15:05.462106-0800 RewardedVideoExample[29610:4726160]  - <Google>[I-ACS025031] AdMob App ID changed. Original, new: (nil), ca-app-pub-2991031448749727~8792139335

2019-11-17 16:15:05.535673-0800 RewardedVideoExample[29610:4726160] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-11-17 16:15:05.536135-0800 RewardedVideoExample[29610:4726160] [Client] Updating selectors after delegate addition failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-11-17 16:15:05.536411-0800 RewardedVideoExample[29610:4726169] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-11-17 16:15:05.537644-0800 RewardedVideoExample[29610:4726160] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-11-17 16:15:05.538039-0800 RewardedVideoExample[29610:4726169] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-11-17 16:15:05.538911-0800 RewardedVideoExample[29610:4726169] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-11-17 16:15:05.539077-0800 RewardedVideoExample[29610:4726160] [Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}

2019-11-17 16:15:05.564369-0800 RewardedVideoExample[29610:4726158]  - <Google>[I-ACS023007] Analytics v.60103000 started

2019-11-17 16:15:05.565276-0800 RewardedVideoExample[29610:4726158]  - <Google>[I-ACS023008] To enable debug logging set the following application argument: -APMAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)

2019-11-17 16:15:05.890991-0800 RewardedVideoExample[29610:4726180] WF: === Starting WebFilter logging for process RewardedVideoExample

2019-11-17 16:15:05.891186-0800 RewardedVideoExample[29610:4726180] WF: _userSettingsForUser : (null)

2019-11-17 16:15:05.891292-0800 RewardedVideoExample[29610:4726180] WF: _WebFilterIsActive returning: NO

2019-11-17 16:15:06.053547-0800 RewardedVideoExample[29610:4726109] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600000482bc0> F8BB1C28-BAE8-11D6-9C31-00039315CD46

2019-11-17 16:15:25.802438-0800 RewardedVideoExample[29610:4726109] -[UIAlertView initWithTitle:message:delegate:cancelButtonTitle:]: unrecognized selector sent to instance 0x7ff9c9d15b50

2019-11-17 16:15:25.812866-0800 RewardedVideoExample[29610:4726109] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIAlertView initWithTitle:message:delegate:cancelButtonTitle:]: unrecognized selector sent to instance 0x7ff9c9d15b50'

*** First throw call stack:

(

0   CoreFoundation                      0x00007fff23b98bde __exceptionPreprocess + 350

1   libobjc.A.dylib                     0x00007fff503b5b20 objc_exception_throw + 48

2   CoreFoundation                      0x00007fff23bb9704 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132

3   UIKitCore                           0x00007fff47190773 -[UIResponder doesNotRecognizeSelector:] + 302

4   CoreFoundation                      0x00007fff23b9d7bc ___forwarding___ + 1436

5   CoreFoundation                      0x00007fff23b9f6c8 _CF_forwarding_prep_0 + 120

6   RewardedVideoExample                0x000000010514a4d3 $sSo11UIAlertViewC5title7message8delegate17cancelButtonTitleABSSSg_AGypSgAGtcfcTO + 659

7   RewardedVideoExample                0x0000000105147db4 $sSo11UIAlertViewC5title7message8delegate17cancelButtonTitleABSSSg_AGypSgAGtcfC + 100

8   RewardedVideoExample                0x0000000105147ca5 $s20RewardedVideoExample14ViewControllerC9playAgainyyyXlF + 837

9   RewardedVideoExample                0x0000000105147e00 $s20RewardedVideoExample14ViewControllerC9playAgainyyyXlFTo + 64

10  UIKitCore                           0x00007fff47163d19 -[UIApplication sendAction:to:from:forEvent:] + 83

11  UIKitCore                           0x00007fff46b55599 -[UIControl sendAction:to:forEvent:] + 223

12  UIKitCore                           0x00007fff46b558e3 -[UIControl _sendActionsForEvents:withEvent:] + 398

13  UIKitCore                           0x00007fff46b54842 -[UIControl touchesEnded:withEvent:] + 481

14  UIKitCore                           0x00007fff4719e21f -[UIWindow _sendTouchesForEvent:] + 2604

15  UIKitCore                           0x00007fff4719fb26 -[UIWindow sendEvent:] + 4596

16  UIKitCore                           0x00007fff4717b1a7 -[UIApplication sendEvent:] + 356

17  UIKitCore                           0x00007fff471faa18 __dispatchPreprocessedEventFromEventQueue + 6847

18  UIKitCore                           0x00007fff471fd4de __handleEventQueueInternal + 5980

19  CoreFoundation                      0x00007fff23afbac1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

20  CoreFoundation                      0x00007fff23afb9ec __CFRunLoopDoSource0 + 76

21  CoreFoundation                      0x00007fff23afb1c4 __CFRunLoopDoSources0 + 180

22  CoreFoundation                      0x00007fff23af5ecf __CFRunLoopRun + 1263

23  CoreFoundation                      0x00007fff23af56b6 CFRunLoopRunSpecific + 438

24  GraphicsServices                    0x00007fff3815cbb0 GSEventRunModal + 65

25  UIKitCore                           0x00007fff47162a67 UIApplicationMain + 1621

26  RewardedVideoExample                0x000000010514b03b main + 75

27  libdyld.dylib                       0x00007fff5123bcf5 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

(lldb) 

Понравилась статья? Поделить с друзьями:
  • Updating nand firmware 3u tools ошибка
  • Updater process ended with error 7 twrp 4pda
  • Updater process ended with error 255 twrp
  • Updater process ended with error 1 twrp при установке прошивки
  • Updater process ended with error 1 twrp xiaomi