Objective-c .m文件中的headerDoc错误

时间:2015-03-03 03:40:33

标签: objective-c xcode headerdoc

我在XCode中使用headerDoc标记,似乎无法记录.m文件中的私有方法。直接从Apple的网站使用示例语法:

@implementation AppDelegate

/*!
 This is an objective-C method.
 @param application
 Parameter A.
 @param launchOptions
 Parameter B.
 @result
 Results in global warming.
 */

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

}

导致以下错误:

Processing compassview/AppDelegate.m
/Users/me/workspace/iOS/myapp/AppDelegate.m:inputCounter: warning: Class braces do not match.
We may have a problem.
/Users/me/workspace/iOS/myapp/AppDelegate.m:194: WARNING: anonymous type.
IC: 181
DC: "end  
"
TL: ""
NL: "end"
PT: ""
/Users/me/workspace/iOS/myapp/AppDelegate.m:194: warning: Unknown keyword  in block-parsed declaration.
This usually means that your code requires C preprocessing in order to be
valid C syntax and either C preprocessing is not enabled (-p) or the required
macros lack HeaderDoc comments.  Use of the @parseOnly tag is recommended
for these special symbols.
@implementation块外的

headerDoc标签可以正常工作而不会出现此错误。

0 个答案:

没有答案