DaveWoodCom / XCGLogger

A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
MIT License
3.94k stars 477 forks source link

Apple Mach-O Linker Warning #22

Closed procmail closed 9 years ago

procmail commented 9 years ago

Hi, I'm building a project that supports back to iOS 7.1, and upon building, I see the following warning: Apple Mach-O Linker Warning: Embedded dylibs/frameworks only run on iOS 8 or later

Is this something I should be concerned about?

DaveWoodCom commented 9 years ago

If you're targeting iOS 7, you'll need to add the XCGLogger.swift file to your project directly, instead of using a sub-project. And remove the import XCGLogger lines from your other .swift files since you won't be using a separate module.

procmail commented 9 years ago

Hmmm, adding the XCGLogger.swift directly to the project is giving me errors: Command failed due to signal: Segmentation fault: 11

DaveWoodCom commented 9 years ago

There's a bug in the Swift compiler with regard to optimization. Change your optimization level to None and that error should go away.

procmail commented 9 years ago

Got it, thanks. I saw the other tickets.