奇妙なセマンティックの問題が発生します。
メッセージ送信式の先頭に「[」がありません
および解析の問題:
期待される ']'
のNSLog
行でAFURLConnectionOperation.m
:
@catch(NSException *e) { caughtException = e; }
if(caughtException) {
NSLog(NSLocalizedString(@"Unhandled exception on %@ networking thread: %@, userInfo: %@", nil), NSStringFromClass([self class]), caughtException, [caughtException userInfo]);
}
[exceptionPool drain];
追加した後
#define NSLog(__FORMAT__, ...) TFLog((@"%s [Line %d] " __FORMAT__), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
私のプロジェクトのプリコンパイルファイルに:Proj-Prefix.pch
このエラーを修正するにはどうすればよいですか?
検索しましたが、行をコメントアウトする以外に回避策はありませんNSLog
..
前もって感謝します!
編集:
NSLog(@"%@", [NSString stringWithFormat:NSLocalizedString(@"Unhandled exception on %@ networking thread: %@, userInfo: %@", nil), NSStringFromClass([self class]), caughtException, [caughtException userInfo]]);
と
NSLog(@"Unhandled exception on %@ networking thread: %@, userInfo: %@", NSStringFromClass([self class]), caughtException, [caughtException userInfo]);
大丈夫です。
しかし、なぜ元のものはそうではないのですか?:?