相信每一个iOSer 都会知道xcode的检查功能。这里只是说一个我在使用中遇到的问题。
打开方式:
按键位置:Product -> Profile
快捷键 cmd + i
问题描述
一般情况下,我都是直接使用快捷键来启动Instruments
的,但是,今天在按完快捷键之后,编译了一会,竟然提示build fail,但是,整个项目是没有Error
的,我在左边列表栏里找了各种报的警告,依次解决,仍然不行。
然后我就去求助万能的Google
了,果然,Stackoverflow上有人遇到过这个问题。
Edit the scheme for your target and under "Profile [App Name]" set the Build Configuration to Debug (it's usually Release by default).
解决方法
如上所说,Scheme中Profile参数
默认是release的,
所以,我就设置成Debug
It's amazing! It does worked !