NSLogtakes a format string as the first argument, followed by a list of arguments that replace the placeholders in the format string (compare String Format Specifiers ).
On Apple platforms, you can print Stringusing the format %@:
let fileName = "the file"
NSLog("File not found: %@", fileName)
Linux (, Vapor).
Swift C,
NSLog ( %s C):
let fileName = "the file"
fileName.withCString {
NSLog("File not found: %s", $0)
}