aidansteele / MagicKit

MagicKit is an Objective-C file identification framework based on libmagic.
Other
193 stars 50 forks source link

<Cocoa/Cocoa.h> not found when building. Cocoa.framework not available. #6

Closed SilentChris closed 11 years ago

SilentChris commented 11 years ago

I cloned the repo, opened the .xcodeproj file and attempted to run a build but it failed, unable to import <Cocoa/Cocoa.h> (included in the precompiled header file).

When trying to add Cocoa.framework in the build phases, it wasn't an available option. Is there something I'm missing? Shouldn't the XCode project already have all the necessary frameworks included in the linking phase?

poof86 commented 11 years ago

Setting the Base SDK of the MagicKit and OpenEmu projects Build Settings to Latest OS X fixed this problem for me.

SilentChris commented 11 years ago

Thanks - that did the trick! (Also, I realized there was a separate warning that basically told me to do this that was displayed below the error message - can't believe I missed it)