Closed yjqg6666 closed 2 years ago
For context on generating stubs, the current stub generator doesn't work on the latest version of MacOS because the recent versions use a dyld_shared_cache
. The current tool is not able to handle parsing the dyld_shared_cache
. I'm actually working on a rewrite of the stub generation, but it is currently incomplete.
hej @yjqg6666, fortunately, I had the stubs already generated. PR #1175 will add them to the darlingserver branch. unfortunately (but expected) this is not sufficient to get the app to try to run. There are undefined symbols at least from CoreMedia FW.
Update: I copied /System/Library/Frameworks/CoreTelephony.framework and /System/Library/PrivateFrameworks/CommonUtilities.framework from the latest avalable Macos Cataline version 10.15.7 (freshly installed).
Run the app /Applications/WeCom.app/Contents/MacOS/WeCom
will result the following error:
dyld: dyld cache load error: shared cache file open() failed dyld: Library not loaded: /usr/lib/libTelephonyUtilDynamic.dylib Referenced from: /System/Library/Frameworks/CoreTelephony.framework/Versions/A/CoreTelephony Reason: image not found abort_with_payload: reason: dyld cache load error: shared cache file open() failed Library not loaded: /usr/lib/libTelephonyUtilDynamic.dylib Referenced from: /System/Library/Frameworks/CoreTelephony.framework/Versions/A/CoreTelephony Reason: image not found; code: 1 Abort trap: 6 (core dumped)
It now may be the reason dyld_shared_cache
mentioned by @CuriousTommy.
dyld: dyld cache load error: shared cache file open() failed
Actually, this issue is different from what I was talking about in my previous reply. This might be a side affect of trying to use Apple's official frameworks.
@yjqg6666 CoreTelephony framework stubs have been merged. You could try again.
@mrolappe Thanks a lot. I will try it later.
Framework What framework is required? What does Apple's developer documentation say about it? Is it open-source? /System/Library/Frameworks/CoreTelephony.framework is required. Documentation: apple doc
Test Application WeChat WeCom Steps To Reproduce
System Information What system are you running?
Related to #1049 .
From the doc: generating stubs, we could generate the stubs from an existing Macos sys. What version of the Macos should be used? From the PRs, most of the PRs are made by @mrolappe and generated using Catalina (10.15) . @mrolappe How about making a PR for the CoreTelephone framework? I do not have Catalina available.