View disassembly in XCode 4 (or Xcode 5 or Xcode 6)
19,458
Solution 1
In Xcode 4.2 (and Xcode 5), you can see the assembly or disassembly for a file by:
- Showing the assistant editor (command+option+Enter is the default shortcut).
- In the JumpBar, select the tuxedo icon and select "Assembly" or "Disassembly" from the drop-down list.
You can view the Assembly for a file whether or not you're running the application. Disassembly is only available when the application is running and being debugged.
Solution 2
Follow these simple steps inside of Xcode:
Solution 3
You can also display disassembly by navigating to:
Debug->Debug Workflow->Show Disassembly
while debugging.
This will display source and disassembly in the main window view.
Solution 4
On Xcode 6 you can go to the menu "Debug -> Debug Workflow -> Always show disassembly".
Related videos on Youtube
Author by
Promit
Updated on May 01, 2022Comments
-
Promit about 2 years
I'm having trouble finding much in the way of information about the new XCode layout. How can I view the disassembly of my source file, rather than just the C++ code?
-
jmihalicza over 12 yearsIn newer versions the assistant editor contains the corresponding views: Preprocess, Assembly and Disassembly. stackoverflow.com/questions/5937031/xcode-4-preprocessor-output
-
-
mpipe3 over 11 yearsIn Xcode 4.5 you can see the disassembly alongside the code using OldPeculiar's answer
-
Promit about 10 yearsIndeed, the functionality was re-introduced back into XCode -- nearly two years later.