2016-02-18 43 views
0

我们正在构建一个使用MFP 7.1的本地iOS应用程序,但无法观看变量或运行'po'。Xcode debug broken MobileFirst 7.1

在命令行上运行例如'myvar'会生成下面的输出。它看起来与MFP包含有关。

IBMMobileFirstPlatformFoundation.h:44:9: error: include of non-modular header inside framework module 'IBMMobileFirstPlatformFoundation'
#import <IBMMobileFirstPlatformFoundation/WLAnalytics.h>

too many errors emitted, stopping nowcould not build Objective-C module 'IBMMobileFirstPlatformFoundation' Debug info from this module will be unavailable in the debugger.

error: Error in auto-import: failed to get module 'MyApp' from AST context

+0

在进一步的调查中,我认为这个问题与使用pod配置项目有关。手动导入框架可以解决问题。 – Adrian

回答

0

如果您通过CocoaPods添加SDK,那么CocoaPods中存在一个可能会妨碍编译的缺陷。

在Build Settings中,转到“搜索标题路径”并删除其中的3个现有条目。然后清理该项目并尝试再次构建它。

+0

这些似乎解决了问题,谢谢! – Adrian