在release狀態(tài)下好像就是默認(rèn)看不到變量的值 下面是解決辦法: 在Project的Build Settings中把 Optimization Level 設(shè)置成 None 即可。