运行时源码-苹果官网

如果只是看源码,远远不如自己造个工程进行断点调试来的清楚。
大家可以直接到我的githu上下载工程进行调试,目前RuntimeDebug_MacOSAPP分支是在MacOS APP做的。
RuntimeDebug_MacOSAPP-可以调试的运行时工程(MacOS 工程)

先看看运行效果:
iOS开发-RuntimeDebug运行时源码调试(macOS APP)

断点:
iOS开发-RuntimeDebug运行时源码调试(macOS APP)

使用步骤:
第1步:编译的target选成objc
iOS开发-RuntimeDebug运行时源码调试(macOS APP)
第2步:编译的target objc
iOS开发-RuntimeDebug运行时源码调试(macOS APP)
第3步:运行的target macOSAPPTest
iOS开发-RuntimeDebug运行时源码调试(macOS APP)

注意:如果第一步失败,就清理一下缓存数据DerivedData,然后product clean一下。

相关文章:

  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2021-11-29
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-03-09
  • 2022-01-14
  • 2020-04-22
  • 2021-05-17
  • 2022-12-23
  • 2021-12-11
  • 2021-05-27
相关资源
相似解决方案