variable self inaccessible here due to optimization
场景:,Variable 'Self' inaccessible here due to optimization
求助,Variable 'Self' inaccessible here due to optimization
原来程序是好好的,我也没添加什么代码,现在在调试的时候就打开watch窗口就提示Variable 'Self' inaccessible here due to optimization,昨天也出现过这种情况,可是不知道怎么回事自己好了,今天又出现了,大家帮忙
------解决方案--------------------
變量為self自身,不可優化。。。
------解决方案--------------------
1、这个不是错误
2、跟代码无关,跟编译优化有关
到Options->Compiler中把Optimization关掉,应该就能看到了,注意改了后要重新BUILD一下项目(是BUILD不是COMPILE),以便生成没有被优化的DCU。
等到真正发布的时候,再把Optimization勾上编译
求助,Variable 'Self' inaccessible here due to optimization
原来程序是好好的,我也没添加什么代码,现在在调试的时候就打开watch窗口就提示Variable 'Self' inaccessible here due to optimization,昨天也出现过这种情况,可是不知道怎么回事自己好了,今天又出现了,大家帮忙
------解决方案--------------------
變量為self自身,不可優化。。。
------解决方案--------------------
1、这个不是错误
2、跟代码无关,跟编译优化有关
到Options->Compiler中把Optimization关掉,应该就能看到了,注意改了后要重新BUILD一下项目(是BUILD不是COMPILE),以便生成没有被优化的DCU。
等到真正发布的时候,再把Optimization勾上编译