dyld_shared_cache

From iPhone Development Wiki
Revision as of 20:00, 7 October 2009 by KennyTM~ (talk | contribs) (Created page with '{{DISPLAYTITLE:dyld_shared_cache}} Starting from iPhoneOS 3.1, all default libraries are combined into a big cache file in <tt>/System/Library/Caches/com.apple.dyld/dyld_shared_…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Starting from iPhoneOS 3.1, all default libraries are combined into a big cache file in /System/Library/Caches/com.apple.dyld/dyld_shared_cache_armv6 (or _armv7) to improve performance. The original files are no longer useful for non-on-device-developers, so they are eliminated from the system.

Cache Extraction

Developers who does not use the SDK cannot link programs on the iPhoneOS directly due to the missing dylibs. One first need to extract the appropriate dylibs from the dyld_shared_cache. A tool dyldcache[1] has been written for this purpose. Note that, if everything is extracted, the total size will be over 4 GB, so be sure to clear up some space.

References

  • Cache or Check? — an analysis of the dyld_shared_cache system by D. Howett.
  1. dyldcache was originally written by D. Howett and later modified by KennyTM~ to allow specified extraction and listing of cached dylibs. The binary can be downloaded from [1] and the source code can be obtained from [2].