小胖说事46-----iOS 控制台报错:No location, value may have been optimized out

我有一个NSString的变量,里面是有值的。在传递给另一个类的成员函数时,跟了下代码,参数变成nil了。提示


(NSString *) srcfile = <no location, value may have been opmized out>


修改方法Produc-> Scheme-> Edit Scheme   run ,build configuration 把relesae改为debug

你可能感兴趣的:(小胖说事46-----iOS 控制台报错:No location, value may have been optimized out)