我在 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
是的,调试器工作正常。任何的想法?
最佳答案
在您的“build设置”中尝试设置这些参数:
Enable Clang Module Debugging = NO
Debug Information Format = DWARF with dSYM
Precompile Prefix Header = NO
并重建您的项目。
关于ios - XCode 7 调试器不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35863593/