小言_互联网的博客

研读 项目名-LinkMap-normal-x86_64.txt

256人阅读  评论(0)

一、生成 Link Map File

Xcode的配置中 Target -> Build Setting -> Linking 将Write Link Map File设置为YES来生成Link Map File,运行代码即可生成Link Map File

二、查看  Link Map File文件

cd /Users/maochengfang/Library/Developer/Xcode/DerivedData/learnDISsemaphore-bamrvwubjyvskafwmmhxlpfjxmcn/Build/Intermediates.noindex/learnDISsemaphore.build/Debug-iphonesimulator/learnDISsemaphore.build


  
  1. ZZ@ZZZZ-Pro learnDISsemaphore.build % ls
  2. Base.lproj
  3. DerivedSources
  4. Objects-normal
  5. all-product-headers.yaml
  6. assetcatalog_dependencies
  7. assetcatalog_generated_info.plist
  8. learnDISsemaphore-LinkMap-normal-x86_64.txt
  9. learnDISsemaphore-all-non-framework-target-headers.hmap
  10. learnDISsemaphore-all-target-headers.hmap
  11. learnDISsemaphore-generated-files.hmap
  12. learnDISsemaphore-own-target-headers.hmap
  13. learnDISsemaphore-project-headers.hmap
  14. learnDISsemaphore.app-Simulated.xcent
  15. learnDISsemaphore.app.xcent
  16. learnDISsemaphore.hmap

learnDISsemaphore-LinkMap-normal-x86_64.txt就是Link Map File 文件


  
  1. cat learnDISsemaphore-LinkMap-normal-x86_64.txt
  2. # Path: /Users/maochengfang/Library/Developer/Xcode/DerivedData/learnDISsemaphore-bamrvwubjyvskafwmmhxlpfjxmcn/Build/Products/Debug-iphonesimulator/learnDISsemaphore.app/learnDISsemaphore
  3. # Arch: x86_64
  4. # Object files:
  5. [ 0] linker synthesized
  6. [ 1] /Users/maochengfang/Library/Developer/Xcode/DerivedData/learnDISsemaphore-bamrvwubjyvskafwmmhxlpfjxmcn/Build/Intermediates.noindex/learnDISsemaphore.build/Debug-iphonesimulator/learnDISsemaphore.build/learnDISsemaphore.app-Simulated.xcent
  7. [ 2] /Users/maochengfang/Library/Developer/Xcode/DerivedData/learnDISsemaphore-bamrvwubjyvskafwmmhxlpfjxmcn/Build/Intermediates.noindex/learnDISsemaphore.build/Debug-iphonesimulator/learnDISsemaphore.build/Objects-normal/x86_64/ViewController.o
  8. [ 3] /Users/maochengfang/Library/Developer/Xcode/DerivedData/learnDISsemaphore-bamrvwubjyvskafwmmhxlpfjxmcn/Build/Intermediates.noindex/learnDISsemaphore.build/Debug-iphonesimulator/learnDISsemaphore.build/Objects-normal/x86_64/AppDelegate.o
  9. [ 4] /Users/maochengfang/Library/Developer/Xcode/DerivedData/learnDISsemaphore-bamrvwubjyvskafwmmhxlpfjxmcn/Build/Intermediates.noindex/learnDISsemaphore.build/Debug-iphonesimulator/learnDISsemaphore.build/Objects-normal/x86_64/main.o
  10. [ 5] /Users/maochengfang/Library/Developer/Xcode/DerivedData/learnDISsemaphore-bamrvwubjyvskafwmmhxlpfjxmcn/Build/Intermediates.noindex/learnDISsemaphore.build/Debug-iphonesimulator/learnDISsemaphore.build/Objects-normal/x86_64/SceneDelegate.o
  11. [ 6] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd
  12. [ 7] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/lib/libobjc.tbd
  13. [ 8] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/lib/libSystem.tbd
  14. [ 9] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks//UIKit.framework/UIKit.tbd
  15. # Sections:
  16. # Address Size Segment Section
  17. 0x100001A50 0x00000903 __TEXT __text
  18. 0x100002354 0x00000060 __TEXT __stubs
  19. 0x1000023B4 0x000000B0 __TEXT __stub_helper
  20. 0x100002464 0x00000D5B __TEXT __objc_methname
  21. 0x1000031C0 0x0000002A __TEXT __ustring
  22. 0x1000031EA 0x00000096 __TEXT __cstring
  23. 0x100003280 0x00000070 __TEXT __objc_classname
  24. 0x1000032F0 0x00000B0F __TEXT __objc_methtype
  25. 0x100003DFF 0x000001AA __TEXT __entitlements
  26. 0x100003FAC 0x00000048 __TEXT __unwind_info
  27. 0x100004000 0x00000028 __DATA_CONST __got
  28. 0x100004028 0x00000070 __DATA_CONST __const
  29. 0x100004098 0x00000080 __DATA_CONST __cfstring
  30. 0x100004118 0x00000018 __DATA_CONST __objc_classlist
  31. 0x100004130 0x00000020 __DATA_CONST __objc_protolist
  32. 0x100004150 0x00000008 __DATA_CONST __objc_imageinfo
  33. 0x100008000 0x00000080 __DATA __la_symbol_ptr
  34. 0x100008080 0x00001340 __DATA __objc_const
  35. 0x1000093C0 0x00000028 __DATA __objc_selrefs
  36. 0x1000093E8 0x00000018 __DATA __objc_classrefs
  37. 0x100009400 0x00000008 __DATA __objc_superrefs
  38. 0x100009408 0x00000008 __DATA __objc_ivar
  39. 0x100009410 0x000000F0 __DATA __objc_data
  40. 0x100009500 0x00000188 __DATA __data
  41. # Symbols:
  42. # Address Size File Name
  43. 0x100001A50 0x00000050 [ 2] -[ViewController viewDidLoad]
  44. 0x100001AA0 0x000001E0 [ 2] -[ViewController testFunc]
  45. 0x100001C80 0x00000070 [ 2] ___26-[ViewController testFunc]_block_invoke
  46. 0x100001CF0 0x00000040 [ 2] ___copy_helper_block_e8_32s
  47. 0x100001D30 0x00000030 [ 2] ___destroy_helper_block_e8_32s
  48. 0x100001D60 0x00000070 [ 2] ___26-[ViewController testFunc]_block_invoke.6
  49. 0x100001DD0 0x0000005A [ 2] ___26-[ViewController testFunc]_block_invoke_2
  50. 0x100001E30 0x00000080 [ 3] -[AppDelegate application:didFinishLaunchingWithOptions:]
  51. 0x100001EB0 0x00000120 [ 3] -[AppDelegate application:configurationForConnectingSceneSession:options:]
  52. 0x100001FD0 0x00000070 [ 3] -[AppDelegate application:didDiscardSceneSessions:]
  53. 0x100002040 0x0000008E [ 4] _main
  54. 0x1000020D0 0x000000B0 [ 5] -[SceneDelegate scene:willConnectToSession:options:]
  55. 0x100002180 0x00000040 [ 5] -[SceneDelegate sceneDidDisconnect:]
  56. 0x1000021C0 0x00000040 [ 5] -[SceneDelegate sceneDidBecomeActive:]
  57. 0x100002200 0x00000040 [ 5] -[SceneDelegate sceneWillResignActive:]
  58. 0x100002240 0x00000040 [ 5] -[SceneDelegate sceneWillEnterForeground:]
  59. 0x100002280 0x00000040 [ 5] -[SceneDelegate sceneDidEnterBackground:]
  60. 0x1000022C0 0x00000020 [ 5] -[SceneDelegate window]
  61. 0x1000022E0 0x00000040 [ 5] -[SceneDelegate setWindow:]
  62. 0x100002320 0x00000033 [ 5] -[SceneDelegate .cxx_destruct]
  63. 0x100002354 0x00000006 [ 6] _NSLog
  64. 0x10000235A 0x00000006 [ 6] _NSStringFromClass
  65. 0x100002360 0x00000006 [ 9] _UIApplicationMain
  66. 0x100002366 0x00000006 [ 8] _dispatch_async
  67. 0x10000236C 0x00000006 [ 8] _dispatch_get_global_queue
  68. 0x100002372 0x00000006 [ 8] _dispatch_semaphore_create
  69. 0x100002378 0x00000006 [ 8] _dispatch_semaphore_signal
  70. 0x10000237E 0x00000006 [ 8] _dispatch_semaphore_wait
  71. 0x100002384 0x00000006 [ 7] _objc_alloc
  72. 0x10000238A 0x00000006 [ 7] _objc_autoreleasePoolPop
  73. 0x100002390 0x00000006 [ 7] _objc_autoreleasePoolPush
  74. 0x100002396 0x00000006 [ 7] _objc_autoreleaseReturnValue
  75. 0x10000239C 0x00000006 [ 7] _objc_msgSendSuper2
  76. 0x1000023A2 0x00000006 [ 7] _objc_opt_class
  77. 0x1000023A8 0x00000006 [ 7] _objc_retainAutoreleasedReturnValue
  78. 0x1000023AE 0x00000006 [ 7] _objc_storeStrong
  79. 0x1000023B4 0x00000010 [ 0] helper helper
  80. 0x1000023C4 0x0000000A [ 6] _NSLog
  81. 0x1000023CE 0x0000000A [ 6] _NSStringFromClass
  82. 0x1000023D8 0x0000000A [ 7] _objc_alloc
  83. 0x1000023E2 0x0000000A [ 7] _objc_autoreleasePoolPop
  84. 0x1000023EC 0x0000000A [ 7] _objc_autoreleasePoolPush
  85. 0x1000023F6 0x0000000A [ 7] _objc_autoreleaseReturnValue
  86. 0x100002400 0x0000000A [ 7] _objc_msgSendSuper2
  87. 0x10000240A 0x0000000A [ 7] _objc_opt_class
  88. 0x100002414 0x0000000A [ 7] _objc_retainAutoreleasedReturnValue
  89. 0x10000241E 0x0000000A [ 7] _objc_storeStrong
  90. 0x100002428 0x0000000A [ 8] _dispatch_async
  91. 0x100002432 0x0000000A [ 8] _dispatch_get_global_queue
  92. 0x10000243C 0x0000000A [ 8] _dispatch_semaphore_create
  93. 0x100002446 0x0000000A [ 8] _dispatch_semaphore_signal
  94. 0x100002450 0x0000000A [ 8] _dispatch_semaphore_wait
  95. 0x10000245A 0x0000000A [ 9] _UIApplicationMain
  96. 0x100002464 0x0000000C [ 2] literal string: viewDidLoad
  97. 0x100002470 0x00000009 [ 2] literal string: testFunc
  98. 0x100002479 0x0000000E [ 2] literal string: currentThread
  99. 0x100002487 0x00000005 [ 3] literal string: role
  100. 0x10000248C 0x0000001A [ 3] literal string: initWithName:sessionRole:
  101. 0x1000024A6 0x00000009 [ 3] literal string: isEqual:
  102. 0x1000024AF 0x00000006 [ 3] literal string: class
  103. 0x1000024B5 0x00000005 [ 3] literal string: self
  104. 0x1000024BA 0x00000011 [ 3] literal string: performSelector:
  105. 0x1000024CB 0x0000001C [ 3] literal string: performSelector:withObject:
  106. 0x1000024E7 0x00000027 [ 3] literal string: performSelector:withObject:withObject:
  107. 0x10000250E 0x00000008 [ 3] literal string: isProxy
  108. 0x100002516 0x0000000F [ 3] literal string: isKindOfClass:
  109. 0x100002525 0x00000011 [ 3] literal string: isMemberOfClass:
  110. 0x100002536 0x00000014 [ 3] literal string: conformsToProtocol:
  111. 0x10000254A 0x00000014 [ 3] literal string: respondsToSelector:
  112. 0x10000255E 0x00000007 [ 3] literal string: retain
  113. 0x100002565 0x00000008 [ 3] literal string: release
  114. 0x10000256D 0x0000000C [ 3] literal string: autorelease
  115. 0x100002579 0x0000000C [ 3] literal string: retainCount
  116. 0x100002585 0x00000005 [ 3] literal string: zone
  117. 0x10000258A 0x00000005 [ 3] literal string: hash
  118. 0x10000258F 0x0000000B [ 3] literal string: superclass
  119. 0x10000259A 0x0000000C [ 3] literal string: description
  120. 0x1000025A6 0x00000011 [ 3] literal string: debugDescription
  121. 0x1000025B7 0x0000001F [ 3] literal string: applicationDidFinishLaunching:
  122. 0x1000025D6 0x0000002C [ 3] literal string: application:willFinishLaunchingWithOptions:
  123. 0x100002602 0x0000002B [ 3] literal string: application:didFinishLaunchingWithOptions:
  124. 0x10000262D 0x0000001C [ 3] literal string: applicationDidBecomeActive:
  125. 0x100002649 0x0000001D [ 3] literal string: applicationWillResignActive:
  126. 0x100002666 0x0000001B [ 3] literal string: application:handleOpenURL:
  127. 0x100002681 0x00000032 [ 3] literal string: application:openURL:sourceApplication:annotation:
  128. 0x1000026B3 0x0000001D [ 3] literal string: application:openURL:options:
  129. 0x1000026D0 0x00000024 [ 3] literal string: applicationDidReceiveMemoryWarning:
  130. 0x1000026F4 0x0000001A [ 3] literal string: applicationWillTerminate:
  131. 0x10000270E 0x00000022 [ 3] literal string: applicationSignificantTimeChange:
  132. 0x100002730 0x00000035 [ 3] literal string: application:willChangeStatusBarOrientation:duration:
  133. 0x100002765 0x0000002B [ 3] literal string: application:didChangeStatusBarOrientation:
  134. 0x100002790 0x00000026 [ 3] literal string: application:willChangeStatusBarFrame:
  135. 0x1000027B6 0x00000025 [ 3] literal string: application:didChangeStatusBarFrame:
  136. 0x1000027DB 0x00000031 [ 3] literal string: application:didRegisterUserNotificationSettings:
  137. 0x10000280C 0x0000003E [ 3] literal string: application:didRegisterForRemoteNotificationsWithDeviceToken:
  138. 0x10000284A 0x0000003E [ 3] literal string: application:didFailToRegisterForRemoteNotificationsWithError:
  139. 0x100002888 0x0000002A [ 3] literal string: application:didReceiveRemoteNotification:
  140. 0x1000028B2 0x00000029 [ 3] literal string: application:didReceiveLocalNotification:
  141. 0x1000028DB 0x0000004F [ 3] literal string: application:handleActionWithIdentifier:forLocalNotification:completionHandler:
  142. 0x10000292A 0x00000061 [ 3] literal string: application:handleActionWithIdentifier:forRemoteNotification:withResponseInfo:completionHandler:
  143. 0x10000298B 0x00000050 [ 3] literal string: application:handleActionWithIdentifier:forRemoteNotification:completionHandler:
  144. 0x1000029DB 0x00000060 [ 3] literal string: application:handleActionWithIdentifier:forLocalNotification:withResponseInfo:completionHandler:
  145. 0x100002A3B 0x00000041 [ 3] literal string: application:didReceiveRemoteNotification:fetchCompletionHandler:
  146. 0x100002A7C 0x0000002F [ 3] literal string: application:performFetchWithCompletionHandler:
  147. 0x100002AAB 0x0000003C [ 3] literal string: application:performActionForShortcutItem:completionHandler:
  148. 0x100002AE7 0x00000043 [ 3] literal string: application:handleEventsForBackgroundURLSession:completionHandler:
  149. 0x100002B2A 0x00000032 [ 3] literal string: application:handleWatchKitExtensionRequest:reply:
  150. 0x100002B5C 0x0000002D [ 3] literal string: applicationShouldRequestHealthAuthorization:
  151. 0x100002B89 0x0000001E [ 3] literal string: application:handlerForIntent:
  152. 0x100002BA7 0x0000002C [ 3] literal string: application:handleIntent:completionHandler:
  153. 0x100002BD3 0x0000001F [ 3] literal string: applicationDidEnterBackground:
  154. 0x100002BF2 0x00000020 [ 3] literal string: applicationWillEnterForeground:
  155. 0x100002C12 0x0000002F [ 3] literal string: applicationProtectedDataWillBecomeUnavailable:
  156. 0x100002C41 0x0000002C [ 3] literal string: applicationProtectedDataDidBecomeAvailable:
  157. 0x100002C6D 0x00000035 [ 3] literal string: application:supportedInterfaceOrientationsForWindow:
  158. 0x100002CA2 0x00000031 [ 3] literal string: application:shouldAllowExtensionPointIdentifier:
  159. 0x100002CD3 0x0000003F [ 3] literal string: application:viewControllerWithRestorationIdentifierPath:coder:
  160. 0x100002D12 0x0000002E [ 3] literal string: application:shouldSaveSecureApplicationState:
  161. 0x100002D40 0x00000031 [ 3] literal string: application:shouldRestoreSecureApplicationState:
  162. 0x100002D71 0x00000030 [ 3] literal string: application:willEncodeRestorableStateWithCoder:
  163. 0x100002DA1 0x0000002F [ 3] literal string: application:didDecodeRestorableStateWithCoder:
  164. 0x100002DD0 0x00000028 [ 3] literal string: application:shouldSaveApplicationState:
  165. 0x100002DF8 0x0000002B [ 3] literal string: application:shouldRestoreApplicationState:
  166. 0x100002E23 0x0000002E [ 3] literal string: application:willContinueUserActivityWithType:
  167. 0x100002E51 0x00000035 [ 3] literal string: application:continueUserActivity:restorationHandler:
  168. 0x100002E86 0x00000039 [ 3] literal string: application:didFailToContinueUserActivityWithType:error:
  169. 0x100002EBF 0x00000023 [ 3] literal string: application:didUpdateUserActivity:
  170. 0x100002EE2 0x00000034 [ 3] literal string: application:userDidAcceptCloudKitShareWithMetadata:
  171. 0x100002F16 0x0000003C [ 3] literal string: application:configurationForConnectingSceneSession:options:
  172. 0x100002F52 0x00000025 [ 3] literal string: application:didDiscardSceneSessions:
  173. 0x100002F77 0x00000007 [ 3] literal string: window
  174. 0x100002F7E 0x0000000B [ 3] literal string: setWindow:
  175. 0x100002F89 0x00000024 [ 5] literal string: scene:willConnectToSession:options:
  176. 0x100002FAD 0x00000014 [ 5] literal string: sceneDidDisconnect:
  177. 0x100002FC1 0x00000016 [ 5] literal string: sceneDidBecomeActive:
  178. 0x100002FD7 0x00000017 [ 5] literal string: sceneWillResignActive:
  179. 0x100002FEE 0x0000001A [ 5] literal string: sceneWillEnterForeground:
  180. 0x100003008 0x00000019 [ 5] literal string: sceneDidEnterBackground:
  181. 0x100003021 0x00000017 [ 5] literal string: scene:openURLContexts:
  182. 0x100003038 0x00000022 [ 5] literal string: stateRestorationActivityForScene:
  183. 0x10000305A 0x00000028 [ 5] literal string: scene:willContinueUserActivityWithType:
  184. 0x100003082 0x0000001C [ 5] literal string: scene:continueUserActivity:
  185. 0x10000309E 0x00000033 [ 5] literal string: scene:didFailToContinueUserActivityWithType:error:
  186. 0x1000030D1 0x0000001D [ 5] literal string: scene:didUpdateUserActivity:
  187. 0x1000030EE 0x0000004B [ 5] literal string: windowScene:didUpdateCoordinateSpace:interfaceOrientation:traitCollection:
  188. 0x100003139 0x0000003C [ 5] literal string: windowScene:performActionForShortcutItem:completionHandler:
  189. 0x100003175 0x00000034 [ 5] literal string: windowScene:userDidAcceptCloudKitShareWithMetadata:
  190. 0x1000031A9 0x0000000E [ 5] literal string: .cxx_destruct
  191. 0x1000031B7 0x00000008 [ 5] literal string: _window
  192. 0x1000031C0 0x0000000E [ 2] l_.str
  193. 0x1000031CE 0x0000000E [ 2] l_.str.7
  194. 0x1000031DC 0x0000000E [ 2] l_.str.9
  195. 0x1000031EA 0x00000006 [ 2] literal string: v8@?0
  196. 0x1000031F0 0x00000016 [ 3] literal string: Default Configuration
  197. 0x100003206 0x00000005 [ 3] literal string: hash
  198. 0x10000320B 0x00000005 [ 3] literal string: TQ,R
  199. 0x100003210 0x0000000B [ 3] literal string: superclass
  200. 0x10000321B 0x00000005 [ 3] literal string: T #,R
  201. 0x100003220 0x0000000C [ 3] literal string: description
  202. 0x10000322C 0x00000011 [ 3] literal string: T@ "NSString",R,C
  203. 0x10000323D 0x00000011 [ 3] literal string: debugDescription
  204. 0x10000324E 0x00000007 [ 3] literal string: window
  205. 0x100003255 0x00000011 [ 3] literal string: T@ "UIWindow",&,N
  206. 0x100003266 0x0000001A [ 5] literal string: T@ "UIWindow",&,N,V_window
  207. 0x100003280 0x0000000F [ 2] literal string: ViewController
  208. 0x10000328F 0x0000000C [ 3] literal string: AppDelegate
  209. 0x10000329B 0x00000016 [ 3] literal string: UIApplicationDelegate
  210. 0x1000032B1 0x00000009 [ 3] literal string: NSObject
  211. 0x1000032BA 0x0000000E [ 5] literal string: SceneDelegate
  212. 0x1000032C8 0x00000016 [ 5] literal string: UIWindowSceneDelegate
  213. 0x1000032DE 0x00000010 [ 5] literal string: UISceneDelegate
  214. 0x1000032EE 0x00000002 [ 5] literal string:
  215. 0x1000032F0 0x00000008 [ 2] literal string: v16@0:8
  216. 0x1000032F8 0x0000000B [ 3] literal string: B24@0:8@16
  217. 0x100003303 0x00000008 [ 3] literal string: #16@0:8
  218. 0x10000330B 0x00000008 [ 3] literal string: @16@0:8
  219. 0x100003313 0x0000000B [ 3] literal string: @24@0:8:16
  220. 0x10000331E 0x0000000E [ 3] literal string: @32@0:8:16@24
  221. 0x10000332C 0x00000011 [ 3] literal string: @40@0:8:16@24@32
  222. 0x10000333D 0x00000008 [ 3] literal string: B16@0:8
  223. 0x100003345 0x0000000B [ 3] literal string: B24@0:8 #16
  224. 0x100003350 0x0000000B [ 3] literal string: B24@0:8:16
  225. 0x10000335B 0x00000009 [ 3] literal string: Vv16@0:8
  226. 0x100003364 0x00000008 [ 3] literal string: Q16@0:8
  227. 0x10000336C 0x00000012 [ 3] literal string: ^{_NSZone=}16@0:8
  228. 0x10000337E 0x00000015 [ 3] literal string: B24@0:8@ "Protocol"16
  229. 0x100003393 0x00000012 [ 3] literal string: @ "NSString"16@0:8
  230. 0x1000033A5 0x0000000B [ 3] literal string: v24@0:8@16
  231. 0x1000033B0 0x0000000E [ 3] literal string: B32@0:8@16@24
  232. 0x1000033BE 0x00000014 [ 3] literal string: B48@0:8@16@24@32@40
  233. 0x1000033D2 0x00000011 [ 3] literal string: B40@0:8@16@24@32
  234. 0x1000033E3 0x00000011 [ 3] literal string: v40@0:8@16q24d32
  235. 0x1000033F4 0x0000000E [ 3] literal string: v32@0:8@16q24
  236. 0x100003402 0x0000002D [ 3] literal string: v56@0:8@16{CGRect={CGPoint=dd}{CGSize=dd}}24
  237. 0x10000342F 0x0000000E [ 3] literal string: v32@0:8@16@24
  238. 0x10000343D 0x00000015 [ 3] literal string: v48@0:8@16@24@32@?40
  239. 0x100003452 0x00000018 [ 3] literal string: v56@0:8@16@24@32@40@?48
  240. 0x10000346A 0x00000012 [ 3] literal string: v40@0:8@16@24@?32
  241. 0x10000347C 0x0000000F [ 3] literal string: v32@0:8@16@?24
  242. 0x10000348B 0x0000000E [ 3] literal string: @32@0:8@16@24
  243. 0x100003499 0x0000000E [ 3] literal string: Q32@0:8@16@24
  244. 0x1000034A7 0x00000011 [ 3] literal string: @40@0:8@16@24@32
  245. 0x1000034B8 0x00000012 [ 3] literal string: B40@0:8@16@24@?32
  246. 0x1000034CA 0x00000011 [ 3] literal string: v40@0:8@16@24@32
  247. 0x1000034DB 0x0000001A [ 3] literal string: v24@0:8@ "UIApplication"16
  248. 0x1000034F5 0x0000002B [ 3] literal string: B32@0:8@ "UIApplication"16@ "NSDictionary"24
  249. 0x100003520 0x00000024 [ 3] literal string: B32@0:8@ "UIApplication"16@ "NSURL"24
  250. 0x100003544 0x00000034 [ 3] literal string: B48@0:8@ "UIApplication"16@ "NSURL"24@ "NSString"32@40
  251. 0x100003578 0x00000035 [ 3] literal string: B40@0:8@ "UIApplication"16@ "NSURL"24@ "NSDictionary"32
  252. 0x1000035AD 0x00000020 [ 3] literal string: v40@0:8@ "UIApplication"16q24d32
  253. 0x1000035CD 0x0000001D [ 3] literal string: v32@0:8@ "UIApplication"16q24
  254. 0x1000035EA 0x0000003C [ 3] literal string: v56@0:8@ "UIApplication"16{CGRect={CGPoint=dd}{CGSize=dd}}24
  255. 0x100003626 0x00000039 [ 3] literal string: v32@0:8@ "UIApplication"16@ "UIUserNotificationSettings"24
  256. 0x10000365F 0x00000025 [ 3] literal string: v32@0:8@ "UIApplication"16@ "NSData"24
  257. 0x100003684 0x00000026 [ 3] literal string: v32@0:8@ "UIApplication"16@ "NSError"24
  258. 0x1000036AA 0x0000002B [ 3] literal string: v32@0:8@ "UIApplication"16@ "NSDictionary"24
  259. 0x1000036D5 0x00000032 [ 3] literal string: v32@0:8@ "UIApplication"16@ "UILocalNotification"24
  260. 0x100003707 0x00000048 [ 3] literal string: v48@0:8@ "UIApplication"16@ "NSString"24@ "UILocalNotification"32@?<v@?>40
  261. 0x10000374F 0x00000052 [ 3] literal string: v56@0:8@ "UIApplication"16@ "NSString"24@ "NSDictionary"32@ "NSDictionary"40@?<v@?>48
  262. 0x1000037A1 0x00000041 [ 3] literal string: v48@0:8@ "UIApplication"16@ "NSString"24@ "NSDictionary"32@?<v@?>40
  263. 0x1000037E2 0x00000059 [ 3] literal string: v56@0:8@ "UIApplication"16@ "NSString"24@ "UILocalNotification"32@ "NSDictionary"40@?<v@?>48
  264. 0x10000383B 0x00000035 [ 3] literal string: v40@0:8@ "UIApplication"16@ "NSDictionary"24@?<v@?Q>32
  265. 0x100003870 0x00000024 [ 3] literal string: v32@0:8@ "UIApplication"16@?<v@?Q>24
  266. 0x100003894 0x00000042 [ 3] literal string: v40@0:8@ "UIApplication"16@ "UIApplicationShortcutItem"24@?<v@?B>32
  267. 0x1000038D6 0x00000030 [ 3] literal string: v40@0:8@ "UIApplication"16@ "NSString"24@?<v@?>32
  268. 0x100003906 0x00000043 [ 3] literal string: v40@0:8@ "UIApplication"16@ "NSDictionary"24@?<v@?@ "NSDictionary">32
  269. 0x100003949 0x00000027 [ 3] literal string: @32@0:8@ "UIApplication"16@ "INIntent"24
  270. 0x100003970 0x00000043 [ 3] literal string: v40@0:8@ "UIApplication"16@ "INIntent"24@?<v@?@ "INIntentResponse">32
  271. 0x1000039B3 0x00000027 [ 3] literal string: Q32@0:8@ "UIApplication"16@ "UIWindow"24
  272. 0x1000039DA 0x00000027 [ 3] literal string: B32@0:8@ "UIApplication"16@ "NSString"24
  273. 0x100003A01 0x00000044 [ 3] literal string: @ "UIViewController"40@0:8@ "UIApplication"16@ "NSArray"24@ "NSCoder"32
  274. 0x100003A45 0x00000026 [ 3] literal string: B32@0:8@ "UIApplication"16@ "NSCoder"24
  275. 0x100003A6B 0x00000026 [ 3] literal string: v32@0:8@ "UIApplication"16@ "NSCoder"24
  276. 0x100003A91 0x00000040 [ 3] literal string: B40@0:8@ "UIApplication"16@ "NSUserActivity"24@?<v@?@ "NSArray">32
  277. 0x100003AD1 0x00000033 [ 3] literal string: v40@0:8@ "UIApplication"16@ "NSString"24@ "NSError"32
  278. 0x100003B04 0x0000002D [ 3] literal string: v32@0:8@ "UIApplication"16@ "NSUserActivity"24
  279. 0x100003B31 0x0000002E [ 3] literal string: v32@0:8@ "UIApplication"16@ "CKShareMetadata"24
  280. 0x100003B5F 0x00000060 [ 3] literal string: @ "UISceneConfiguration"40@0:8@ "UIApplication"16@ "UISceneSession"24@ "UISceneConnectionOptions"32
  281. 0x100003BBF 0x00000024 [ 3] literal string: v32@0:8@ "UIApplication"16@ "NSSet"24
  282. 0x100003BE3 0x00000012 [ 3] literal string: @ "UIWindow"16@0:8
  283. 0x100003BF5 0x00000015 [ 3] literal string: v24@0:8@ "UIWindow"16
  284. 0x100003C0A 0x0000000B [ 5] literal string: @24@0:8@16
  285. 0x100003C15 0x00000044 [ 5] literal string: v40@0:8@ "UIScene"16@ "UISceneSession"24@ "UISceneConnectionOptions"32
  286. 0x100003C59 0x00000014 [ 5] literal string: v24@0:8@ "UIScene"16
  287. 0x100003C6D 0x0000001E [ 5] literal string: v32@0:8@ "UIScene"16@ "NSSet"24
  288. 0x100003C8B 0x00000024 [ 5] literal string: @ "NSUserActivity"24@0:8@ "UIScene"16
  289. 0x100003CAF 0x00000021 [ 5] literal string: v32@0:8@ "UIScene"16@ "NSString"24
  290. 0x100003CD0 0x00000027 [ 5] literal string: v32@0:8@ "UIScene"16@ "NSUserActivity"24
  291. 0x100003CF7 0x0000002D [ 5] literal string: v40@0:8@ "UIScene"16@ "NSString"24@ "NSError"32
  292. 0x100003D24 0x00000014 [ 5] literal string: v48@0:8@16@24q32@40
  293. 0x100003D38 0x0000004B [ 5] literal string: v48@0:8@ "UIWindowScene"16@ "<UICoordinateSpace>"24q32@ "UITraitCollection"40
  294. 0x100003D83 0x00000042 [ 5] literal string: v40@0:8@ "UIWindowScene"16@ "UIApplicationShortcutItem"24@?<v@?B>32
  295. 0x100003DC5 0x0000002E [ 5] literal string: v32@0:8@ "UIWindowScene"16@ "CKShareMetadata"24
  296. 0x100003DF3 0x0000000C [ 5] literal string: @ "UIWindow"
  297. 0x100003DFF 0x000001AA [ 1] opaque_section
  298. 0x100003FAC 0x00000048 [ 0] compact unwind info
  299. 0x100004000 0x00000008 [ 0] non-lazy-pointer-to-local: __NSConcreteStackBlock
  300. 0x100004008 0x00000008 [ 0] non-lazy-pointer-to-local: _objc_msgSend
  301. 0x100004010 0x00000008 [ 0] non-lazy-pointer-to-local: _objc_release
  302. 0x100004018 0x00000008 [ 0] non-lazy-pointer-to-local: _objc_retain
  303. 0x100004020 0x00000008 [ 0] non-lazy-pointer-to-local: dyld_stub_binder
  304. 0x100004028 0x00000030 [ 2] ___block_descriptor_40_e8_32s_e5_v8?0l
  305. 0x100004058 0x00000020 [ 2] ___block_descriptor_32_e5_v8?0l
  306. 0x100004078 0x00000020 [ 2] ___block_literal_global
  307. 0x100004098 0x00000020 [ 2] CFString
  308. 0x1000040B8 0x00000020 [ 2] CFString
  309. 0x1000040D8 0x00000020 [ 2] CFString
  310. 0x1000040F8 0x00000020 [ 3] CFString
  311. 0x100004118 0x00000008 [ 2] objc-cat-list
  312. 0x100004120 0x00000008 [ 3] objc-cat-list
  313. 0x100004128 0x00000008 [ 5] objc-cat-list
  314. 0x100004130 0x00000008 [ 3] __OBJC_LABEL_PROTOCOL_ $_NSObject
  315. 0x100004138 0x00000008 [ 3] __OBJC_LABEL_PROTOCOL_ $_UIApplicationDelegate
  316. 0x100004140 0x00000008 [ 5] __OBJC_LABEL_PROTOCOL_ $_UISceneDelegate
  317. 0x100004148 0x00000008 [ 5] __OBJC_LABEL_PROTOCOL_ $_UIWindowSceneDelegate
  318. 0x100004150 0x00000008 [ 0] objc image info
  319. 0x100008000 0x00000008 [ 6] _NSLog
  320. 0x100008008 0x00000008 [ 6] _NSStringFromClass
  321. 0x100008010 0x00000008 [ 9] _UIApplicationMain
  322. 0x100008018 0x00000008 [ 8] _dispatch_async
  323. 0x100008020 0x00000008 [ 8] _dispatch_get_global_queue
  324. 0x100008028 0x00000008 [ 8] _dispatch_semaphore_create
  325. 0x100008030 0x00000008 [ 8] _dispatch_semaphore_signal
  326. 0x100008038 0x00000008 [ 8] _dispatch_semaphore_wait
  327. 0x100008040 0x00000008 [ 7] _objc_alloc
  328. 0x100008048 0x00000008 [ 7] _objc_autoreleasePoolPop
  329. 0x100008050 0x00000008 [ 7] _objc_autoreleasePoolPush
  330. 0x100008058 0x00000008 [ 7] _objc_autoreleaseReturnValue
  331. 0x100008060 0x00000008 [ 7] _objc_msgSendSuper2
  332. 0x100008068 0x00000008 [ 7] _objc_opt_class
  333. 0x100008070 0x00000008 [ 7] _objc_retainAutoreleasedReturnValue
  334. 0x100008078 0x00000008 [ 7] _objc_storeStrong
  335. 0x100008080 0x00000048 [ 2] __OBJC_METACLASS_RO_ $_ViewController
  336. 0x1000080C8 0x00000038 [ 2] __OBJC_ $_INSTANCE_METHODS_ViewController
  337. 0x100008100 0x00000048 [ 2] __OBJC_CLASS_RO_ $_ViewController
  338. 0x100008148 0x000001D0 [ 3] __OBJC_ $_PROTOCOL_INSTANCE_METHODS_NSObject
  339. 0x100008318 0x00000020 [ 3] __OBJC_ $_PROTOCOL_INSTANCE_METHODS_OPT_NSObject
  340. 0x100008338 0x00000048 [ 3] __OBJC_ $_PROP_LIST_NSObject
  341. 0x100008380 0x000000A0 [ 3] __OBJC_ $_PROTOCOL_METHOD_TYPES_NSObject
  342. 0x100008420 0x00000018 [ 3] __OBJC_ $_PROTOCOL_REFS_UIApplicationDelegate
  343. 0x100008438 0x00000518 [ 3] __OBJC_ $_PROTOCOL_INSTANCE_METHODS_OPT_UIApplicationDelegate
  344. 0x100008950 0x00000018 [ 3] __OBJC_ $_PROP_LIST_UIApplicationDelegate
  345. 0x100008968 0x000001B0 [ 3] __OBJC_ $_PROTOCOL_METHOD_TYPES_UIApplicationDelegate
  346. 0x100008B18 0x00000018 [ 3] __OBJC_CLASS_PROTOCOLS_ $_AppDelegate
  347. 0x100008B30 0x00000048 [ 3] __OBJC_METACLASS_RO_ $_AppDelegate
  348. 0x100008B78 0x00000050 [ 3] __OBJC_ $_INSTANCE_METHODS_AppDelegate
  349. 0x100008BC8 0x00000058 [ 3] __OBJC_ $_PROP_LIST_AppDelegate
  350. 0x100008C20 0x00000048 [ 3] __OBJC_CLASS_RO_ $_AppDelegate
  351. 0x100008C68 0x000001D0 [ 5] __OBJC_ $_PROTOCOL_INSTANCE_METHODS_NSObject
  352. 0x100008E38 0x00000020 [ 5] __OBJC_ $_PROTOCOL_INSTANCE_METHODS_OPT_NSObject
  353. 0x100008E58 0x00000048 [ 5] __OBJC_ $_PROP_LIST_NSObject
  354. 0x100008EA0 0x000000A0 [ 5] __OBJC_ $_PROTOCOL_METHOD_TYPES_NSObject
  355. 0x100008F40 0x00000018 [ 5] __OBJC_ $_PROTOCOL_REFS_UISceneDelegate
  356. 0x100008F58 0x00000128 [ 5] __OBJC_ $_PROTOCOL_INSTANCE_METHODS_OPT_UISceneDelegate
  357. 0x100009080 0x00000060 [ 5] __OBJC_ $_PROTOCOL_METHOD_TYPES_UISceneDelegate
  358. 0x1000090E0 0x00000018 [ 5] __OBJC_ $_PROTOCOL_REFS_UIWindowSceneDelegate
  359. 0x1000090F8 0x00000080 [ 5] __OBJC_ $_PROTOCOL_INSTANCE_METHODS_OPT_UIWindowSceneDelegate
  360. 0x100009178 0x00000018 [ 5] __OBJC_ $_PROP_LIST_UIWindowSceneDelegate
  361. 0x100009190 0x00000028 [ 5] __OBJC_ $_PROTOCOL_METHOD_TYPES_UIWindowSceneDelegate
  362. 0x1000091B8 0x00000018 [ 5] __OBJC_CLASS_PROTOCOLS_ $_SceneDelegate
  363. 0x1000091D0 0x00000048 [ 5] __OBJC_METACLASS_RO_ $_SceneDelegate
  364. 0x100009218 0x000000E0 [ 5] __OBJC_ $_INSTANCE_METHODS_SceneDelegate
  365. 0x1000092F8 0x00000028 [ 5] __OBJC_ $_INSTANCE_VARIABLES_SceneDelegate
  366. 0x100009320 0x00000058 [ 5] __OBJC_ $_PROP_LIST_SceneDelegate
  367. 0x100009378 0x00000048 [ 5] __OBJC_CLASS_RO_ $_SceneDelegate
  368. 0x1000093C0 0x00000008 [ 2] pointer-to-literal-cstring
  369. 0x1000093C8 0x00000008 [ 2] pointer-to-literal-cstring
  370. 0x1000093D0 0x00000008 [ 2] pointer-to-literal-cstring
  371. 0x1000093D8 0x00000008 [ 3] pointer-to-literal-cstring
  372. 0x1000093E0 0x00000008 [ 3] pointer-to-literal-cstring
  373. 0x1000093E8 0x00000008 [ 2] objc-class-ref
  374. 0x1000093F0 0x00000008 [ 3] objc-class-ref
  375. 0x1000093F8 0x00000008 [ 4] objc-class-ref
  376. 0x100009400 0x00000008 [ 2] anon
  377. 0x100009408 0x00000008 [ 5] _OBJC_IVAR_ $_SceneDelegate._window
  378. 0x100009410 0x00000028 [ 2] _OBJC_CLASS_ $_ViewController
  379. 0x100009438 0x00000028 [ 2] _OBJC_METACLASS_ $_ViewController
  380. 0x100009460 0x00000028 [ 3] _OBJC_METACLASS_ $_AppDelegate
  381. 0x100009488 0x00000028 [ 3] _OBJC_CLASS_ $_AppDelegate
  382. 0x1000094B0 0x00000028 [ 5] _OBJC_METACLASS_ $_SceneDelegate
  383. 0x1000094D8 0x00000028 [ 5] _OBJC_CLASS_ $_SceneDelegate
  384. 0x100009500 0x00000008 [ 0] __dyld_private
  385. 0x100009508 0x00000060 [ 3] __OBJC_PROTOCOL_ $_NSObject
  386. 0x100009568 0x00000060 [ 3] __OBJC_PROTOCOL_ $_UIApplicationDelegate
  387. 0x1000095C8 0x00000060 [ 5] __OBJC_PROTOCOL_ $_UISceneDelegate
  388. 0x100009628 0x00000060 [ 5] __OBJC_PROTOCOL_ $_UIWindowSceneDelegate
  389. # Dead Stripped Symbols:
  390. # Size File Name
  391. <<dead>> 0x00000018 [ 2] CIE
  392. <<dead>> 0x00000018 [ 3] CIE
  393. <<dead>> 0x00000018 [ 4] CIE
  394. <<dead>> 0x00000009 [ 5] literal string: NSObject
  395. <<dead>> 0x00000009 [ 5] literal string: isEqual:
  396. <<dead>> 0x00000006 [ 5] literal string: class
  397. <<dead>> 0x00000005 [ 5] literal string: self
  398. <<dead>> 0x00000011 [ 5] literal string: performSelector:
  399. <<dead>> 0x0000001C [ 5] literal string: performSelector:withObject:
  400. <<dead>> 0x00000027 [ 5] literal string: performSelector:withObject:withObject:
  401. <<dead>> 0x00000008 [ 5] literal string: isProxy
  402. <<dead>> 0x0000000F [ 5] literal string: isKindOfClass:
  403. <<dead>> 0x00000011 [ 5] literal string: isMemberOfClass:
  404. <<dead>> 0x00000014 [ 5] literal string: conformsToProtocol:
  405. <<dead>> 0x00000014 [ 5] literal string: respondsToSelector:
  406. <<dead>> 0x00000007 [ 5] literal string: retain
  407. <<dead>> 0x00000008 [ 5] literal string: release
  408. <<dead>> 0x0000000C [ 5] literal string: autorelease
  409. <<dead>> 0x0000000C [ 5] literal string: retainCount
  410. <<dead>> 0x00000005 [ 5] literal string: zone
  411. <<dead>> 0x00000005 [ 5] literal string: hash
  412. <<dead>> 0x0000000B [ 5] literal string: superclass
  413. <<dead>> 0x0000000C [ 5] literal string: description
  414. <<dead>> 0x00000011 [ 5] literal string: debugDescription
  415. <<dead>> 0x00000007 [ 5] literal string: window
  416. <<dead>> 0x0000000B [ 5] literal string: setWindow:
  417. <<dead>> 0x0000000B [ 5] literal string: B24@0:8@16
  418. <<dead>> 0x00000008 [ 5] literal string: #16@0:8
  419. <<dead>> 0x00000008 [ 5] literal string: @16@0:8
  420. <<dead>> 0x0000000B [ 5] literal string: @24@0:8:16
  421. <<dead>> 0x0000000E [ 5] literal string: @32@0:8:16@24
  422. <<dead>> 0x00000011 [ 5] literal string: @40@0:8:16@24@32
  423. <<dead>> 0x00000008 [ 5] literal string: B16@0:8
  424. <<dead>> 0x0000000B [ 5] literal string: B24@0:8 #16
  425. <<dead>> 0x0000000B [ 5] literal string: B24@0:8:16
  426. <<dead>> 0x00000009 [ 5] literal string: Vv16@0:8
  427. <<dead>> 0x00000008 [ 5] literal string: Q16@0:8
  428. <<dead>> 0x00000012 [ 5] literal string: ^{_NSZone=}16@0:8
  429. <<dead>> 0x00000015 [ 5] literal string: B24@0:8@ "Protocol"16
  430. <<dead>> 0x00000012 [ 5] literal string: @ "NSString"16@0:8
  431. <<dead>> 0x00000011 [ 5] literal string: v40@0:8@16@24@32
  432. <<dead>> 0x0000000B [ 5] literal string: v24@0:8@16
  433. <<dead>> 0x0000000E [ 5] literal string: v32@0:8@16@24
  434. <<dead>> 0x00000012 [ 5] literal string: v40@0:8@16@24@?32
  435. <<dead>> 0x00000012 [ 5] literal string: @ "UIWindow"16@0:8
  436. <<dead>> 0x00000015 [ 5] literal string: v24@0:8@ "UIWindow"16
  437. <<dead>> 0x00000008 [ 5] literal string: v16@0:8
  438. <<dead>> 0x00000005 [ 5] literal string: hash
  439. <<dead>> 0x00000005 [ 5] literal string: TQ,R
  440. <<dead>> 0x0000000B [ 5] literal string: superclass
  441. <<dead>> 0x00000005 [ 5] literal string: T #,R
  442. <<dead>> 0x0000000C [ 5] literal string: description
  443. <<dead>> 0x00000011 [ 5] literal string: T@ "NSString",R,C
  444. <<dead>> 0x00000011 [ 5] literal string: debugDescription
  445. <<dead>> 0x00000007 [ 5] literal string: window
  446. <<dead>> 0x00000011 [ 5] literal string: T@ "UIWindow",&,N
  447. <<dead>> 0x00000018 [ 5] CIE

分成三个部分

001 路径部分 展示生成相关文件的路径

Path是.app文件路径

Object file是.o文件路径 

002 section部分 展示相关地址段

Mach-O文件的虚地址最终会映射到物理地址上

  • __TEXT 包含 Mach header,被执行的代码和只读常量(如C 字符串),只读可执行(r-x)。
  • __DATA 包含全局变量,静态变量等,可读写(rw-)。
  • __LINKEDIT 包含了加载程序的元数据,比如函数的名称和地址,只读(r–)。

__TEXT段中的 Section

字段 说明
__text 代码节,存放机器编译后的代码
__stubs 用于辅助做动态链接代码(dyld
__stub_helper 用于辅助做动态链接
__objc_methname objc的方法名称
__stub_helper 用于辅助做动态链接
__cstring 代码运行中包含的字符串常量, 
例:#define kKey @"123"
123会存在这个区里
__objc_classname 类名
__objc_methtype 方法类型
__ustring  
__gcc_except_tab  
__const 存储const修饰的常量
__dof_RACSignal  
__dof_RACCompou  
__unwind_info  

__DATA段中的 Section

字段 说明
__got 存储引用符号的实际地址,类似于动态符号表
__la_symbol_ptr lazy symbol pointers。
懒加载的函数指针地址。
配合__stubsstub_helper使用。
__mod_init_func 模块初始化的方法
__const 存储constant常量的数据。
比如使用extern导出的const修饰的常量。
__cfstring Core Foundation 字符串
__objc_classlist OC类列表和类信息
映射了__objc_data的地址
__objc_nlclslist OC 的 +load 函数列表,
比  __mod_init_func 更早执行
__objc_catlist categories
__objc_nlcatlist categories+load`函数列表
__objc_protolist 协议列表
__objc_imageinfo 镜像信息
__objc_const OC常量。保存objc_classdata结构体数据。
用于映射类相关数据的地址,比如类名,方法名等
__objc_selrefs 引用的 OC 方法
__objc_protorefs 引用的 OC 协议
__objc_classrefs 引用的 OC 类
__objc_superrefs 引用的 OC超类
__objc_ivar ivar指针
__objc_data 用于保存类需要的数据。
最主要的内容是映射__objc_const地址,
找到类的相关数据。
__data 存放了协议和已经初始化的静态量
__bss 存储未初始化的静态量
__common 存储导出的全局的数据

 

003 Symbols部分 方法符号段

  • Address:方法代码的地址
  • Size:方法占用的空间
  • File:文件的编号
  • Name.o文件里面的方法符号

Symbols 部分的 File 顺序是和 Target -> Build Phase -> Compile Sources 的文件顺序一致的。

参考资料


转载:https://blog.csdn.net/Coding_Physical/article/details/116711441
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场