我在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,这将删除此警告,它确实有效。但是现在调试器不会在我设置的任何断点处停止。当我将GCC_GENERATE_DEBUGGING_SYMBOLS
设置为YES时,调试器工作正常。
有什么想法吗?
答案 0 :(得分:2)
在“构建设置”中尝试设置以下参数:
Enable Clang Module Debugging = NO
Debug Information Format = DWARF with dSYM
Precompile Prefix Header = NO
重建你的项目。
答案 1 :(得分:0)
当您将Xcode 6项目更新为7时会出现问题。简短的回答是在目标上将调试信息格式更改为“DWARF”,仅用于调试配置。
这是安全的,因为您不需要用于Debug版本的dSYM文件