• dyld环境变量


    苹果APP启动,分为两个过程:系统dylib动态链接库 app的main函数启动过程。
    main函数过程直接对iOS开发者。这里备忘的dylib过程:
    一、dyld加载到虚拟内存
        1. load dylibs image 
        2. Rebase image
        3. Bind image
        4. Objc setup
        5. initializers
    二、runtime接管imageLoader加载到内存的镜像
        1. imageLoader加载进行到内存
        2. runtime 解析和处理
        3. 按照继承关系与category关系,层级调用+load方法
        
    调试方式:
       【iOS开发】dyld环境变量(备忘)
     
    变量说明
    DYLD_PRINT_STATISTICS 1 Print launch performance statistics
    打印启动时间等参数
    DYLD_PRINT_SEGMENTS 1 Log segment mapping
    打印segment映射日志
    DYLD_PRINT_INITIALIZERS 1 Log image initialization calls
    打印镜像初始化调用日志
    DYLD_PRINT_BINDINGS 1 Log symbol bindings
    打印符号绑定日志
    DYLD_PRINT_APIS 1 Log dyld API calls (for example, dlopen)
    打印 dyld API 调用日志
    DYLD_PRINT_ENV 1 Print launch-time environment variables
    DYLD_PRINT_OPTS 1 Print launch-time command line arguments
    DYLD_PRINT_LIBRARIES_POST_LAUNCH 1 Log library loads , but only after main has run
    DYLD_PRINT_LIBRARIES 1 Log library loads
    DYLD_IMAGE_SUFFIX 1 Search for libraries with this suffix first

  • 相关阅读:
    蛋糕多少钱?
    【FJOI2015】金币换位问题
    撞车
    【BZOJ 1097】旅游景点atr
    codeforces 434D
    codeforces 480D
    bzoj网络流
    bzoj2039
    bzoj1927
    bzoj1070
  • 原文地址:https://www.cnblogs.com/lxlx1798/p/9283956.html
Copyright © 2020-2023  润新知