0

我已经从这个链接下载了 Parse Kit

我正在使用 Xcode 4.5 并且我正在尝试构建 Parse Kit 项目,但它正在完成以下问题,例如:

它是 ParseKit 来源中以下行的问题描述:Format not a string literal and no format arguments. But I notice that I have not changed any just build it and run. Anybody has got the same issue?

[[NSAssertionHandler currentHandler] handleFailureInFunction:functionString file:fileString lineNumber:(NSInteger)[lineNumber longValue] description:descriptionString];
4

2 回答 2

1

我在这条线上添加了 nil 并且它有效

[[NSAssertionHandler currentHandler] handleFailureInFunction:functionString file:fileString lineNumber:(NSInteger)[lineNumber longValue] description:descriptionString, nil];

因为方法获取此参数。

于 2012-11-08T15:22:46.783 回答
0

修复是 [[NSAssertionHandler currentHandler] handleFailureInFunction:functionString file:fileString lineNumber:(NSInteger)[lineNumber longValue] description:@"%@", descriptionString];

于 2014-04-23T08:04:24.003 回答