与预处理器宏相混淆 - 现在iOS应用程序不会为设备构建 - Cocoapods?

时间:2014-02-13 08:14:06

标签: ios xcode build-process cocoapods

我遇到了一个问题,在我将预处理器宏添加到项目后,我无法再为设备构建。虽然模拟器工作正常,但是为设备构建会在我的几个Cocoapod依赖项中产生大量的编译错误。

我的构建失败日志如下所示:

While building module 'UIKit' imported from /Users/MyUsername/Mobile/MyApp/Pods/Pods-MBProgressHUD-prefix.pch:2:
In file included from <module-includes>:1:
In file included from /Applications/Xcode51-Beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:
In file included from /Applications/Xcode51-Beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:
In file included from /Applications/Xcode51-Beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:10:
/Applications/Xcode51-Beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:351:1: error: unexpected '@' in program

另一个失败的吊舱给了我这个:

/Users/MyUsername/Mobile/MyApp/Pods/Pods-MBProgressHUD-prefix.pch:2:9: fatal error: could not build module 'UIKit'
#import <UIKit/UIKit.h>

任何人都知道会发生什么?

谢谢!

0 个答案:

没有答案