XCode 7debugging器不工作
我将我的项目转换为XCode 7中的iOS 9。
我注意到,我得到了很多这样的警告:
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
从我读的需要将GCC_GENERATE_DEBUGGING_SYMBOLS
设置为NO,这将删除此警告,并且它真的工作。但现在debugging器不停止在我设置的任何断点。 当我将GCC_GENERATE_DEBUGGING_SYMBOLS
设置为YES时,debugging器正常工作。
任何想法?
在“生成设置”中尝试设置这些参数:
Enable Clang Module Debugging = NO Debug Information Format = DWARF with dSYM Precompile Prefix Header = NO
并重build你的项目。
如果将Xcode 6项目更新为7,则会出现问题。简单的答案是,仅针对debuggingconfiguration将目标上的debugging信息格式更改为“DWARF”。
- 转到构build设置并searchdebugging信息格式
- 将debugging设置从“带有dSYM文件的DWARF”更改为“DWARF”
- 将发布设置保留为“带有dSYM文件的DWARF”
这是安全的,因为debugging版本不需要dSYM文件