'import OSLog' - could not build

'import OSLog' compiles well in all Xcode beta version including the 12.2, but makes an error "could not build Objective-C module 'OSLog'" in Xcode 12 release.

Replacing with 'import os.log' works.

I do not understand and cannot explain it.
What is wrong?
I presume you’re targeting iOS here because import OSLog works just fine in a macOS target.

If so, the problem is that the OSLog framework is not available on iOS-based platforms. It was present, albeit non-functional, throughout the beta cycle and was removed in the GM.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
'import OSLog' - could not build
 
 
Q