XCode4设置不太一样: 在Edit-->Scheme里面 找到Arguments 把下面3个值设置成YES NSAutoreleaseFreedObjectCheckEnabled NSZombieEnabledNSDebugEnabled