XCode 7调试器不工作 [英] XCode 7 debugger not working

查看:177
本文介绍了XCode 7调试器不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将项目转换为XCode 7中的iOS 9。



我注意到我收到了很多警告:

 警告:无法解析外部类型c:​​objc(cs)NSArray 
警告:无法解析外部类型c:​​objc(cs)UIView
警告:无法解析外部类型c:​​objc(cs)NSString
警告:无法解析外部类型c:​​objc(cs)NSNumber
警告:无法解析外部类型c:​​objc(cs )NSObject
警告:无法解析外部类型c:​​objc(cs)UIWebView
警告:无法解析外部类型c:​​objc(cs)UIView
警告:无法解析外部类型c :objc(cs)NSObject
警告:无法解析外部类型c:​​@ S @ _NSRange
警告:无法解析外部类型c:​​objc(cs)NSURL
警告:无法解析外部类型c:​​objc(cs)NSBundle
警告:无法解析外部类型c:​​objc(cs)NSException

从我读取的内容需要设置 GCC_GENERATE_DEBUGG ING_SYMBOLS 为NO,这将删除此警告,它的确有效。但现在调试器不会停止在我设置的任何断点。当我将 GCC_GENERATE_DEBUGGING_SYMBOLS 设置为YES时,调试器工作正常。



任何想法?

解决方案

在构建设置中,尝试设置以下参数:

 启用Clang模块调试= NO 
调试信息格式= DWARF与dSYM
预编译前缀标题= NO

并重建项目。


I Convert my project to iOS 9 in XCode 7.

And i noticed that i get a lot of warning like this:

warning: Could not resolve external type c:objc(cs)NSArray
warning: Could not resolve external type c:objc(cs)UIView
warning: Could not resolve external type c:objc(cs)NSString
warning: Could not resolve external type c:objc(cs)NSNumber
warning: Could not resolve external type c:objc(cs)NSObject
warning: Could not resolve external type c:objc(cs)UIWebView
warning: Could not resolve external type c:objc(cs)UIView
warning: Could not resolve external type c:objc(cs)NSObject
warning: Could not resolve external type c:@S@_NSRange
warning: Could not resolve external type c:objc(cs)NSURL
warning: Could not resolve external type c:objc(cs)NSBundle
warning: Could not resolve external type c:objc(cs)NSException

From what i read in need to set GCC_GENERATE_DEBUGGING_SYMBOLS to NO and this will remove this warnings, and it really work.But now the debugger don't stop in any break-point that i set. When i set GCC_GENERATE_DEBUGGING_SYMBOLS to YES the debugger work fine.

Any idea?

解决方案

Within your "Build settings" try setting these parameters:

Enable Clang Module Debugging = NO
Debug Information Format = DWARF with dSYM
Precompile Prefix Header = NO

And rebuild your project.

这篇关于XCode 7调试器不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆