가능한 중복 :
Calling NSLog from C++: “Format string is not a string literal (potentially insecure)”
Why is my string potentially unsecure in my iOS application?내 문자열이 잠재적으로 안전하지 않은 이유는 무엇입니까?
내가 NSMutableDictionary는 목표 - C에서 "내 사전을"라는 내 요소의 수를 기록하기 위해이 코드가 있습니다.
NSLog([NSString stringWithFormat:@"%d", [myDictionary count]]);
XCode는 "서식 문자열이 문자열 리터럴이 아닙니다. 잠재적으로 안전하지 않습니다."라고 경고합니다.
왜? 숫자를 직접 캐스팅하는 대신 보안 형식이 지정된 문자열을 사용하지 않습니까?
중복 : [one] (http://stackoverflow.com/questions/9793199/calling-nslog-from-c-format-string-is-not-a-string-literal-potentially-inse), [two ] (http://stackoverflow.com/questions/9961363/why-is-my-string-potentially-unsecure-in-my-ios-application). –