سؤال

I have downloaded Parse Kit from this link

I am using Xcode 4.5 and i am trying to build Parse Kit project, but it is finishing with issues for example like below:

it is description of issue on the line below in ParseKit's sources: 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];
هل كانت مفيدة؟

المحلول

I have added nil to this line and it works

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

because method get this parameter.

نصائح أخرى

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top