Apple Mac BlueTooth Low Power Issues with Precompiled Headers and Later Xcode
I downloaded the BlueTooth Low Energy (BLE) heart rate code example (see http://developer.apple.com/library/mac/#samplecode/HeartRateMonitor/Listings/ReadMe_txt.html if interested) and built it with XCode 4.6 on Mtn Lion MacBook Air. I am getting the following error: Docs / HeartRateMonitor / HeartRateMonitor / HeartRateMonitor -Prefix.pch: 6:13: fatal error: 'Cocoa / Cocoa.h' file not found #import
I've tried various things like getting rid of the precompiled header file, changing some settings, but nothing worked. I'm new to the Apple world; I've done limited iOS stuff with Xcode but no Mac programming. I did some research and tried to follow an example here: Compile, build or archive issues with Xcode 4 (and dependencies)
Is it possible to remove Prefix.pch file from Xcode project?
Note that the original example states that this is for XCode 4.2 or newer.
source to share
I had this problem for the same exact project. Download the command line tools package from apple dev site and do your best.
https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-
source to share