2012-06-01 53 views
0

当我构建它时,我的项目直接在设备上运行。然而,当我试图把它封存与TestFlight使用它,我得到以下错误:Xcode项目宏名称问题

Lexical or Preprocessor Issue 
Macro names must be identifiers 

这是为什么发生的事情我已经定义了唯一的宏是此在的AppDelegate:

#define TESTING 1 
    #ifdef TESTING 
    [TestFlight setDeviceIdentifier:[[UIDevice currentDevice] uniqueIdentifier]]; 
    #endif 

任何帮助将不胜感激。

回答

0

试试这个:

#define TESTING 1 
#if TESTING 
    NSLog(@"\n\n\n\n\n\ttesting !!!!!\n\n\n\n\n"); 
#endif 

你可能也想看看这个帖子:Error: macro names must be identifiers using #ifdef 0

+0

我做了尝试。我评论了整个事情,但我仍然遇到同样的问题 - 虽然我从未定义过宏。 – darksky

+0

试试我的编辑版本。两者都适用于我... – Adam

+0

如果我在得到该错误后即使发表评论,那么问题就在其他地方。 – darksky