Swift3 NSLog打印URL.absoluteString失败

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool 方法中
{
let urlString = url.absoliteString
NSLog("urlString = (urlString)")
}
URL.absoluteString 返回正常 却无法访问NSLog
和Run模式相关,release模式会优化NSLog

你可能感兴趣的:(Swift3 NSLog打印URL.absoluteString失败)