查看 Mac 微信运行日志
通过命令行启动微信:
/Applications/WeChat.app/Contents/MacOS/WeChat ; exit;
从运行日志看,微信似乎是使用 Objective C 开发,采用了 SQLite 数据库:
一段完整的启动日志如下:
➜ /Applications/WeChat.app/Contents/MacOS/WeChat ; exit;
objc[50323]: Class AFHTTPSessionManager is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383008) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b02d38). One of the two will be used. Which one is undefined.
objc[50323]: Class AFNetworkReachabilityManager is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107382f68) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b02dd8). One of the two will be used. Which one is undefined.
objc[50323]: Class AFSecurityPolicy is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107382fb8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b02e28). One of the two will be used. Which one is undefined.
objc[50323]: Class AFQueryStringPair is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383148) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b02e78). One of the two will be used. Which one is undefined.
objc[50323]: Class AFHTTPRequestSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383198) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b02ec8). One of the two will be used. Which one is undefined.
objc[50323]: Class AFStreamingMultipartFormData is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1073831c0) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b02ef0). One of the two will be used. Which one is undefined.
objc[50323]: Class AFMultipartBodyStream is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383210) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b02f40). One of the two will be used. Which one is undefined.
objc[50323]: Class AFHTTPBodyPart is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383238) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b02f68). One of the two will be used. Which one is undefined.
objc[50323]: Class AFJSONRequestSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1073832d8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b03008). One of the two will be used. Which one is undefined.
objc[50323]: Class AFPropertyListRequestSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383328) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b03058). One of the two will be used. Which one is undefined.
objc[50323]: Class AFHTTPResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383378) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b030a8). One of the two will be used. Which one is undefined.
objc[50323]: Class AFJSONResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1073833c8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b030f8). One of the two will be used. Which one is undefined.
objc[50323]: Class AFXMLParserResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383418) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b03148). One of the two will be used. Which one is undefined.
objc[50323]: Class AFXMLDocumentResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383468) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b03198). One of the two will be used. Which one is undefined.
objc[50323]: Class AFPropertyListResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1073834b8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b031e8). One of the two will be used. Which one is undefined.
objc[50323]: Class AFImageResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383508) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b03238). One of the two will be used. Which one is undefined.
objc[50323]: Class AFCompoundResponseSerializer is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383558) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b03288). One of the two will be used. Which one is undefined.
objc[50323]: Class AFURLSessionManagerTaskDelegate is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x107383058) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b032d8). One of the two will be used. Which one is undefined.
objc[50323]: Class _AFURLSessionTaskSwizzling is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1073830d0) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b03350). One of the two will be used. Which one is undefined.
objc[50323]: Class AFURLSessionManager is implemented in both /Applications/WeChat.app/Contents/Frameworks/AFNetworking.framework/Versions/A/AFNetworking (0x1073830f8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b03378). One of the two will be used. Which one is undefined.
objc[50323]: Class MarsReachability is implemented in both /Applications/WeChat.app/Contents/Frameworks/matrixreport.framework/Versions/A/matrixreport (0x1074607b8) and /Applications/WeChat.app/Contents/MacOS/WeChat (0x105b0bfe8). One of the two will be used. Which one is undefined.
2021-05-25 18:04:07.452 WeChat[50323:8889328] Event: kMMLoginEventUseOneClickLogin, from state: stateStart to state: stateShowingOneClick
[WCDB]Code:283, Type:SQLiteGlobal, Msg:recovered 12 frames from WAL file /Users/cnjeftia/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/9505a027381d29abc18274656ac20813/KvConfig/kv_config.d
2021-05-25 18:04:09.980 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:04:09.980 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:04:09.980 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:04:09.981 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:04:09.981 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:04:09.981 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:04:10.000 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:04:10.000 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:04:10.000 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:04:10.520 WeChat[50323:8889328] Event: kMMLoginEventOneClickRequestSent, from state: stateShowingOneClick to state: stateWaittingConfirm
2021-05-25 18:04:19.410 WeChat[50323:8889328] Event: kMMLoginEventOneClickRequestConfirmed, from state: stateWaittingConfirm to state: stateLoggingIn
2021-05-25 18:04:20.291 WeChat[50323:8889328]
2021-05-25 18:04:20.291 WeChat[50323:8889328] Split view bounds: {{0, 0}, {1284, 815}}
2021-05-25 18:04:20.291 WeChat[50323:8889328] Arranged view frame: {{0, 0}, {269, 815}}
2021-05-25 18:04:20.291 WeChat[50323:8889328] Arranged view frame: {{270, 0}, {1015, 815}}
2021-05-25 18:04:20.291 WeChat[50323:8889328] The outer edges of the arranged view frames are supposed to line up with the split view's bounds' edges. NSSplitView is working around the problem, perhaps at the cost of more redrawing. (This message is only logged once per NSSplitView.)
[SQLITERK_OK] Saved master info with 157 entries.
[SQLITERK_OK] Saved master info with 111 entries.
[SQLITERK_OK] Saved master info with 115 entries.
2021-05-25 18:04:22.030 WeChat[50323:8889869] -[MMPinyinCacheInfo encodeWithCoder:]: unrecognized selector sent to instance 0x7fa90f9fb110
2021-05-25 18:04:22.044 WeChat[50323:8889869] *** -[NSKeyedArchiver dealloc]: warning: NSKeyedArchiver deallocated without having had -finishEncoding called on it.
2021-05-25 18:04:22.595 WeChat[50323:8889328] Warning: Expected min height of view: (
[SQLITERK_OK] Saved master info with 117 entries.
[SQLITERK_OK] Saved master info with 125 entries.
[SQLITERK_OK] Saved master info with 137 entries.
[SQLITERK_OK] Saved master info with 163 entries.
[SQLITERK_OK] Saved master info with 109 entries.
[SQLITERK_OK] Saved master info with 135 entries.
[SQLITERK_OK] Saved master info with 85 entries.
2021-05-25 18:04:24.164 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:04:24.164 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:04:24.164 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:04:24.164 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:04:24.164 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:04:24.164 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:04:24.413 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:04:24.413 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:04:24.413 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:04:24.413 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:04:24.413 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:04:24.413 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:05:27.969 WeChat[50323:8889328] Alive 5
2021-05-25 18:07:07.992 WeChat[50323:8889328] Alive 10
2021-05-25 18:08:14.296 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:08:14.296 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:08:14.296 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:08:14.302 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:08:14.302 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:08:14.302 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:08:48.023 WeChat[50323:8889328] Alive 15
2021-05-25 18:08:57.868 WeChat[50323:8889328] Warning: Expected min height of view: (
2021-05-25 18:08:57.872 WeChat[50323:8889328] Warning: Expected min height of view: (
2021-05-25 18:09:02.758 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:09:02.758 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:09:02.758 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:09:02.759 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:09:02.759 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:09:02.759 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:09:05.943 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:09:05.943 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:09:05.943 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:09:05.944 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:09:05.944 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:09:05.944 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:09:25.879 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:09:25.879 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:09:25.879 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:09:25.880 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:09:25.880 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:09:25.880 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:09:28.874 WeChat[50323:8889328]
2021-05-25 18:09:28.875 WeChat[50323:8889328]
2021-05-25 18:09:28.911 WeChat[50323:8889328]
2021-05-25 18:09:28.957 WeChat[50323:8889328]
2021-05-25 18:09:28.964 WeChat[50323:8889328]
2021-05-25 18:09:28.979 WeChat[50323:8889328]
2021-05-25 18:09:29.001 WeChat[50323:8889328]
2021-05-25 18:09:29.007 WeChat[50323:8889328]
2021-05-25 18:09:29.171 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:09:29.171 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:09:29.171 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:09:29.171 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:09:29.171 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:09:29.171 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:09:37.607 WeChat[50323:8889328]
2021-05-25 18:09:37.622 WeChat[50323:8889328]
2021-05-25 18:09:43.657 WeChat[50323:8889328]
2021-05-25 18:09:43.661 WeChat[50323:8889328]
2021-05-25 18:09:43.668 WeChat[50323:8889328]
2021-05-25 18:09:43.668 WeChat[50323:8889328]
2021-05-25 18:09:43.668 WeChat[50323:8889328]
2021-05-25 18:09:43.668 WeChat[50323:8889328]
2021-05-25 18:09:43.671 WeChat[50323:8889328]
2021-05-25 18:09:43.673 WeChat[50323:8889328]
2021-05-25 18:09:43.674 WeChat[50323:8889328]
2021-05-25 18:09:43.676 WeChat[50323:8889328]
2021-05-25 18:09:45.726 WeChat[50323:8889328]
2021-05-25 18:09:45.728 WeChat[50323:8889328]
2021-05-25 18:09:45.730 WeChat[50323:8889328]
2021-05-25 18:09:45.739 WeChat[50323:8889328]
2021-05-25 18:09:45.740 WeChat[50323:8889328]
2021-05-25 18:09:45.742 WeChat[50323:8889328]
2021-05-25 18:09:51.439 WeChat[50323:8889328]
2021-05-25 18:09:51.440 WeChat[50323:8889328]
2021-05-25 18:09:51.442 WeChat[50323:8889328]
2021-05-25 18:09:52.817 WeChat[50323:8889328]
2021-05-25 18:09:52.818 WeChat[50323:8889328]
2021-05-25 18:09:52.819 WeChat[50323:8889328]
2021-05-25 18:09:52.826 WeChat[50323:8889328]
2021-05-25 18:09:52.827 WeChat[50323:8889328]
2021-05-25 18:09:52.828 WeChat[50323:8889328]
2021-05-25 18:09:54.961 WeChat[50323:8889328]
2021-05-25 18:09:54.961 WeChat[50323:8889328]
2021-05-25 18:09:54.961 WeChat[50323:8889328]
2021-05-25 18:09:54.961 WeChat[50323:8889328]
2021-05-25 18:09:54.964 WeChat[50323:8889328]
2021-05-25 18:09:54.964 WeChat[50323:8889328]
2021-05-25 18:09:54.966 WeChat[50323:8889328]
2021-05-25 18:09:54.971 WeChat[50323:8889328]
2021-05-25 18:10:13.772 WeChat[50323:8889328]
2021-05-25 18:10:13.772 WeChat[50323:8889328]
2021-05-25 18:10:13.788 WeChat[50323:8889328]
2021-05-25 18:10:13.831 WeChat[50323:8889328]
2021-05-25 18:10:13.835 WeChat[50323:8889328]
2021-05-25 18:10:13.849 WeChat[50323:8889328]
2021-05-25 18:10:13.872 WeChat[50323:8889328]
2021-05-25 18:10:13.876 WeChat[50323:8889328]
2021-05-25 18:10:13.981 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:10:13.981 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:10:13.981 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:10:13.981 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:10:13.981 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:10:13.982 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:10:16.786 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:10:16.786 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:10:16.786 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:10:16.786 WeChat[50323:8889328] _TIPropertyValueIsValid called with 4 on nil context!
2021-05-25 18:10:16.786 WeChat[50323:8889328] imkxpc_getApplicationProperty:reply: called with incorrect property value 4, bailing.
2021-05-25 18:10:16.786 WeChat[50323:8889328] Text input context does not respond to _valueForTIProperty:
2021-05-25 18:10:18.261 WeChat[50323:8889328]
2021-05-25 18:10:18.273 WeChat[50323:8889328]
2021-05-25 18:10:20.935 WeChat[50323:8889328]
2021-05-25 18:10:20.938 WeChat[50323:8889328]
2021-05-25 18:10:20.944 WeChat[50323:8889328]
2021-05-25 18:10:20.944 WeChat[50323:8889328]
2021-05-25 18:10:20.944 WeChat[50323:8889328]
2021-05-25 18:10:20.944 WeChat[50323:8889328]
2021-05-25 18:10:20.946 WeChat[50323:8889328]
2021-05-25 18:10:20.949 WeChat[50323:8889328]
2021-05-25 18:10:20.950 WeChat[50323:8889328]
2021-05-25 18:10:20.951 WeChat[50323:8889328]
2021-05-25 18:10:22.558 WeChat[50323:8889328]
2021-05-25 18:10:22.559 WeChat[50323:8889328]
2021-05-25 18:10:22.561 WeChat[50323:8889328]
2021-05-25 18:10:22.568 WeChat[50323:8889328]
2021-05-25 18:10:22.569 WeChat[50323:8889328]
2021-05-25 18:10:22.571 WeChat[50323:8889328]
2021-05-25 18:10:25.450 WeChat[50323:8889328]
2021-05-25 18:10:25.450 WeChat[50323:8889328]
2021-05-25 18:10:25.451 WeChat[50323:8889328]
2021-05-25 18:10:25.451 WeChat[50323:8889328]
2021-05-25 18:10:25.454 WeChat[50323:8889328]
2021-05-25 18:10:25.454 WeChat[50323:8889328]
2021-05-25 18:10:25.457 WeChat[50323:8889328]
2021-05-25 18:10:25.462 WeChat[50323:8889328]
2021-05-25 18:10:28.038 WeChat[50323:8889328] Alive 20
2021-05-25 18:12:08.077 WeChat[50323:8889328] Alive 25
我本并没有兴趣研究微信,但这是它崩溃后,重新启动时自动触发的一段命令行启动脚本,吸引了我的注意,随手记录一下。