可能性の重複:
Calling NSLog from C++: “Format string is not a string literal (potentially insecure)”
Why is my string potentially unsecure in my iOS application?私の文字列は潜在的に安全ではありませんか?
私はNSMutableDictionaryの要素数を記録するには、このコードを持ってはObjective-Cで "myDictionary" と呼ばれます。
NSLog([NSString stringWithFormat:@"%d", [myDictionary count]]);
「フォーマット文字列は文字列リテラルではありません。潜在的に安全ではありません」という警告が表示されます。
なぜですか?カウントを直接キャストするのではなく、安全な書式設定された文字列を使用していませんか?
重複:[1](http://stackoverflow.com/questions/9793199/calling-nslog-from-c-format-string-is-not-a-string-literal-potentially-inse)、[2 ](http://stackoverflow.com/questions/9961363/why-is-my-string-potentially-unsecure-in-myios-application)。 –