代码之家  ›  专栏  ›  技术社区  ›  tokentoken

如果我提交应用时NSZombieEnabled=YES

  •  0
  • tokentoken  · 技术社区  · 16 年前

    有时我将NSZombieEnabled环境参数设置为YES进行调试。

    我想这个选项只是一个环境选项,所以并不影响提交的申请。

    我说的对吗?

    2 回复  |  直到 16 年前
        1
  •  0
  •   esilver rmaddy    15 年前

    为了更清楚地回答这个问题:

    我刚做了个测试。我在启动时将此代码插入我的应用程序:

    if(getenv("NSZombieEnabled") || getenv("NSAutoreleaseFreedObjectCheckEnabled"))
        assert(NO);
    

    然后我按照下图配置了XCode。

    NSZombieEnabled in xcode

        2
  •  6
  •   bbum    16 年前

    (请注意,启用僵尸检测时使用