Hello world safari app extension automatically quit after seconds when debugging

The Hello world project attached by allowing "unsigned extension" automatically quit with code 0 after a period of time.

We have been developing a safari app extension with numerous messages exchange, unfortunately I just couldn't see through a whole trip at once, since it would exit with code 0 after several seconds. There was no clues after commenting and scrutinizing the codes. So I just created a brand new hello world to see whether I can print all the messages I sent. The results are stunning, the hello world progra quit as welll without error or exception. I assume that it would be a built-in mechanism to prevent the app from running without interaction with users. But anyway It really hard for me to debug that messages communication,


Does anyone know what's going on here, how can work it out?

Thanks !

Replies

2019-06-10 16:41:42.742732+0800 Safari[44375:923094] [SQLiteStore] Failed to acquire database store coordination lock at /Users/ftqa/Library/Safari/Favicon Cache/favicons.db-lock: [35: Resource temporarily unavailable]

2019-06-10 16:41:42.821446+0800 Safari[44375:923094] [SQLiteStore] Failed to acquire exclusive access to database at file:///Users/ftqa/Library/Safari/Favicon%20Cache/favicons.db.

2019-06-10 16:41:42.849217+0800 Safari[44375:923150] [SQLiteStore] Failed to acquire database store coordination lock at /Users/ftqa/Library/Caches/com.apple.Safari/TabSnapshots/Metadata.db-lock: [35: Resource temporarily unavailable]

2019-06-10 16:41:42.850986+0800 Safari[44375:923150] [SQLiteStore] Failed to acquire exclusive access to database at file:///Users/ftqa/Library/Caches/com.apple.Safari/TabSnapshots/Metadata.db.

2019-06-10 16:41:42.867615+0800 Safari[44375:923143] [SQLiteStore] Failed to acquire database store coordination lock at /Users/ftqa/Library/Safari/Favicon Cache/favicons.db-lock: [35: Resource temporarily unavailable]

2019-06-10 16:41:42.867675+0800 Safari[44375:923143] [SQLiteStore] Failed to acquire exclusive access to database at file:///Users/ftqa/Library/Safari/Favicon%20Cache/favicons.db.

2019-06-10 16:41:42.867797+0800 Safari[44375:923143] [SQLiteStore] Falling back to an in-memory store

2019-06-10 16:41:42.973441+0800 Safari[44375:923145] flock failed to lock maps file: errno = 35

2019-06-10 16:41:42.975012+0800 Safari[44375:923145] flock failed to lock maps file: errno = 35

2019-06-10 16:41:42.951250+0800 Safari[44375:923143] [FaviconPersistence] Using in-memory representation for database /Users/ftqa/Library/Safari/Favicon Cache/favicons.db

2019-06-10 16:41:43.541334+0800 Safari[44375:923090] [RemotePlistController] The downloaded plist could not be loaded: Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."

2019-06-10 16:41:44.104392+0800 Safari[44375:923150] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.151741+0800 Safari[44375:923150] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.152659+0800 Safari[44375:923150] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.167711+0800 Safari[44375:923150] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.169150+0800 Safari[44375:923150] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.169698+0800 Safari[44375:923211] [CrowdsourcedAutoFill] Unable to read cloud AutoFill correction sets, error: Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.217985+0800 Safari[44375:923141] [RemotePlistController] The downloaded plist could not be loaded: Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."

2019-06-10 16:41:44.225998+0800 Safari[44375:923150] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.227770+0800 Safari[44375:923069] [PerSitePreferences] Failed to set up all website policies before timeout

2019-06-10 16:41:44.659431+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.661850+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.662183+0800 Safari[44375:923152] [CrowdsourcedAutoFill] Neither local nor cloud classification correction databases could be opened

2019-06-10 16:41:44.665848+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.667983+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.668210+0800 Safari[44375:923152] [CrowdsourcedAutoFill] Neither local nor cloud classification correction databases could be opened

2019-06-10 16:41:44.668685+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.670932+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.671137+0800 Safari[44375:923152] [CrowdsourcedAutoFill] Neither local nor cloud classification correction databases could be opened

2019-06-10 16:41:44.671745+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.673637+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.673864+0800 Safari[44375:923152] [CrowdsourcedAutoFill] Neither local nor cloud classification correction databases could be opened

2019-06-10 16:41:44.674276+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.676335+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.676500+0800 Safari[44375:923152] [CrowdsourcedAutoFill] Neither local nor cloud classification correction databases could be opened

2019-06-10 16:41:44.676985+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.678839+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.679045+0800 Safari[44375:923152] [CrowdsourcedAutoFill] Neither local nor cloud classification correction databases could be opened

2019-06-10 16:41:44.679579+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.682122+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.682346+0800 Safari[44375:923152] [CrowdsourcedAutoFill] Neither local nor cloud classification correction databases could be opened

2019-06-10 16:41:44.683185+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.685668+0800 Safari[44375:923152] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.685858+0800 Safari[44375:923152] [CrowdsourcedAutoFill] Neither local nor cloud classification correction databases could be opened

2019-06-10 16:41:44.810712+0800 Safari[44375:923143] Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at AutoFillCorrections.db.

2019-06-10 16:41:44.813411+0800 Safari[44375:923143] Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

Failed to acquire exclusive access to AutoFill corrections SQLite store at CloudAutoFillCorrections.db.

2019-06-10 16:41:44.981225+0800 Safari[44375:923150] [FaviconProvider] Failed to get image from icon data: 0 bytes

2019-06-10 16:41:45.607871+0800 Safari[44375:923069] [Extensions] Computing the code signing dictionary failed for extension with identifier com.uft.SafariAppExtension-Extension

2019-06-10 16:41:45.607979+0800 Safari[44375:923069] [Extensions] Disabling and blocking extension with identifier: com.uft.SafariAppExtension-Extension

2019-06-10 16:41:45.743000+0800 Safari[44375:923069] [Extensions] Computing the code signing dictionary failed for extension with identifier com.uft.SafariAppExtension-Extension

2019-06-10 16:41:45.743044+0800 Safari[44375:923069] [Extensions] Disabling and blocking extension with identifier: com.uft.SafariAppExtension-Extension

2019-06-10 16:41:46.180699+0800 Safari[44375:923069] [Extensions] Computing the code signing dictionary failed for extension with identifier com.uft.SafariAppExtension-Extension

2019-06-10 16:41:46.180734+0800 Safari[44375:923069] [Extensions] Disabling and blocking extension with identifier: com.uft.SafariAppExtension-Extension

2019-06-10 16:42:12.148199+0800 Safari[44375:923069] Could not connect action, target class SecurityPreferences does not respond to -toggleJavaScriptCanOpenWindows:

2019-06-10 16:42:12.266514+0800 Safari[44375:923069] AssertMacros: 0 (value = 0x0), file: /BuildRoot/Library/Caches/com.apple.xbs/Sources/BiometricKit/BiometricKit-75.71.1/BiometricKit/BiometricKitXPCClient.m, line: 75

2019-06-10 16:42:12.266577+0800 Safari[44375:923069] AssertMacros: 0 (value = 0x0), file: /BuildRoot/Library/Caches/com.apple.xbs/Sources/BiometricKit/BiometricKit-75.71.1/BiometricKit/BiometricKitXPCClient.m, line: 396

2019-06-10 16:42:12.266644+0800 Safari[44375:923069] [Framework-Internal-Legacy] AssertMacros: _xpcClient (value = 0x0), file: /BuildRoot/Library/Caches/com.apple.xbs/Sources/BiometricKit/BiometricKit-75.71.1/BiometricKit/BiometricKit.m, line: 137

2019-06-10 16:42:12.480980+0800 Safari[44375:923586] [RemotePlistController] The downloaded plist could not be loaded: Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."

2019-06-10 16:42:12.677053+0800 Safari[44375:923404] NSURLConnection finished with error - code -1100

2019-06-10 16:42:12.730189+0800 Safari[44375:923404] NSURLConnection finished with error - code -1100

Program ended with exit code: 0