Debug mode not working

时间:2016-08-31 12:27:12

标签: ios objective-c swift debugging cocoapods

After certain pod installation, my app's debug mode stop working. On breakpoint, when i try to print any value in console by typing

po cell

it's giving me following error.

warning: Swift error in module DemoAppDebug info from this module will be unavailable in the debugger.

error: Error in auto-import:
failed to get module 'DemoApp' from AST context:
/Users/macExpert/IOS Projects/DemoApp/Source/DemoApp/Demo-Bridging-Header.h:12:9: note: in file included from /Users/macExpert/IOS Projects/DemoApp/Source/DemoApp/Demo-Bridging-Header.h:12:
#import "MBProgressHUD.h"
    ^
/Users/macExpert/IOS     Projects/DemoApp/Source/DemoApp/DemoApp/ThirdParty/MBProgressHUD/MBProgress    HUD.h:38:2: error: redefinition of enumerator     'MBProgressHUDModeIndeterminate'
        MBProgressHUDModeIndeterminate,
    ^
/Users/macExpert/Library/Developer/Xcode/DerivedData/DemoApp-    amtojfejfgssxoeugwoimotdqqbr/Build/Products/Debug-    iphonesimulator/MBProgressHUD/MBProgressHUD.framework/Headers/MBProgressHUD    .h:38:2: note: previous definition is here
        MBProgressHUDModeIndeterminate,
    ^

Faced this type of issue first time. Experts please help

1 个答案:

答案 0 :(得分:1)

我只是从桥接文件中删除了一些不需要的导入语句,调试模式开始工作。