ios - XCode 7 调试器不工作

标签 ios objective-c iphone xcode debugging

我在 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/

相关文章:

ios - 如何将委托(delegate)更改为 NSURLSession

iphone - SQLite Code在iPhone模拟器上运行,在iPad上崩溃

ios - 如何从索引到索引解析NSString?

ios - 即使在导入 MapKit 后仍使用未声明的类型 'MKMapView'

iphone - 监控并检测 iphone 是否已插入并正在充电,应用程序处于挂起模式时是否已连接 wifi

objective-c - AVAssetExportSession 不会导出 AVAudioRecorder 录制的音频

objective-c - 如何覆盖 Swift 类属性以进行测试

iphone - iPhone 应用程序是否支持垃圾回收?

ios - 尝试抛出错误,但为什么呢?

iOS SDK 和 Instagram