Today Extension with NSCocoaErrorDomain Code=4097

It may be a vague question, but I'm puzzled with this symtpom.


I have an app with a Today extension.

The Today extension in the released version installed from App Store somehow does not start up.

(It fails to start up with console message: Hub connection error Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named ***" UserInfo={NSDebugDescription=connection to service named ***})


However, when connected with Instruments (which means, when launched from Instruments), it starts up successfully.

The exact same built, that startsup when connected with Instruments, fails to start up without Instruments.


Could anyone explain what causes this diffrence?

(The extension starts up immediately when run directly from Xcode as a debug built (no 'ate bad food' issue). It uses about 9MB memory. Built with Swift 3.)

Replies

I have the exact same problem with a Call Directory Extension on iOS 11 and with Xcode 9

I have the same problem.