When dyld_decache fails on dyld_shared_cache_arm64, dsc_extractor saves our days


#23

apple developer最新的就行,把if0改if1就行了


#24

自己下载个固件即可。


#25

大大你好我在編譯的時候,出現一個奇怪的錯誤:
dsc_extractor.cpp:42:10: fatal error: ‘Architectures.hpp’ file not found

請問要去哪裡補這個檔案?


#26

抱歉我自己找到解答了,要下載整個tar.gz包 而不是只下載dsc_extractor.cpp的檔案就好,犯蠢了!


#27

Thank you,it’s all right and help to me dump private framework.


#28

今天学习到这里,看到狗神的帖子遇到些问题。把解决问题的方式共享到这里

问题一:

leo-MacBook-Pro:launch-cache leo$ patch < dsc_extractor.patch

patching file dsc_extractor.cpp
patch unexpectedly ends in middle of line
patch: **** unexpected end of file in patch

原处:

-#if 0 
+/* #if 0 */

修改成

-#if 1 
+/* #if 1 */

在+/* #endif */ 后 按下回车,添加一行

再次运行

patch < dsc_extractor.patch

问题二:

leo-MacBook-Pro:launch-cache leo$ clang++ -o dsc_extractor dsc_extractor.cpp dsc_iterator.cpp
In file included from dsc_extractor.cpp:51:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ext/hash_map:213:5: warning:
  Use of the header <ext/hash_map> is deprecated. Migrate to
  <unordered_map> [-W#warnings]
#   warning Use of the header <ext/hash_map> is deprecat...
^
dsc_extractor.cpp:232:20: error: assigning to 'char *' from
  incompatible type 'const char *'
...while ( (slash = strchr(afterSlash, '/')) != NULL ) {
                  ^~~~~~~~~~~~~~~~~~~~~~~
dsc_extractor.cpp:460:2: error: unterminated conditional
  directive
#if 0
^
1 warning and 2 errors generated.

原处:230行

const char* afterSlash = &dirs[1];

修改成:

char* afterSlash = &dirs[1];  去除const

原处:460行

#if 0

修改成:

#if 1

原处:488行

/* #endif */

修改成:

#endif 放开注释

再次运行 clang++ -o dsc_extractor dsc_extractor.cpp dsc_iterator.cpp


#29

哥们给力 666


#30

thanks a lot