Xcode断点调试的值均为nil,控制台打印却有值

<!-- run -->
<div id="app">
<div>
<el-collapse v-model="activeName">
<el-collapse-item title="问题" name="1">
 <el-alert title="SDK调试 Xcode断点发现断点下的局部变量的值均为nil,无法调试,而NSLog打印控制台是有值的" type="info" :closable="false" />
 </el-collapse-item>
<el-collapse-item title="报错信息" name="2">
 <el-alert title="po xxx 提示errored out in DoExecute,couldn't PrepareToExecuteJITExpression" type="error" :closable="false" />
 </el-collapse-item>
<el-collapse-item title="产生问题的原因" name="3">
 <el-alert title="因为优化包大小时没注意,Optimization Level  Debug和Release的选项均设置为Fastest了" type="warning" :closable="false" />
 </el-collapse-item>
<el-collapse-item title="解决办法" name="4"> 
 <el-alert title="Optimization Level   Debug时设置为none (-O0)即可" type="success" :closable="false" />
 </el-collapse-item>
 </el-collapse>
</div>
</div>
<script>
new Vue({
      el: '#app',
    data() {
      return {
        value: true,
        activeName:['1','2','3','4']
      }
   }
});
</script>
posted @ 2022-08-30 18:19  CoderWGB  阅读(161)  评论(0编辑  收藏  举报