How to determine binary image architecture at runtime?
问题 Crash log contains "Binary Images" section with information about architecture (armv6/armv7) and identifier of all loaded modules. How to determine this information at runtime? (at least, just for application executable) NSBundle has method executableArchitectures, but how to determine which architecture is running? 回答1: Alright time for the long answer. The mach headers of the dyld images in the application contain the information you are looking for. I have added an example that I only