Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9274409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:20:49+00:00 2026-06-18T16:20:49+00:00

I downloaded the BlueTooth Low Energy (BLE) Heart Rate Example code (see: http://developer.apple.com/library/mac/#samplecode/HeartRateMonitor/Listings/ReadMe_txt.html if

  • 0

I downloaded the BlueTooth Low Energy (BLE) Heart Rate Example code (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 get the following error:
Documents/HeartRateMonitor/HeartRateMonitor/HeartRateMonitor-Prefix.pch:6:13: fatal error: ‘Cocoa/Cocoa.h’ file not found
#import

I have tried various things such as getting rid of the precompiled header file, changing some settings, but nothing has worked. I’m new to the Apple world; I’ve done limited iOS stuff with XCode but no Mac programming. I have done some research and tried to follow the advice here for example:
Compile, Build or Archive problems with Xcode 4 (and dependencies)

Is it OK to remove Prefix.pch file from the Xcode project?

Note that the original example states it is for XCode 4.2 or later.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T16:20:51+00:00Added an answer on June 18, 2026 at 4:20 pm

    I had this problem for the same exact project. Download the command line tools package from the apple dev site and your good to go.

    https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I downloaded the necessary from http://code.google.com/p/delphichromiumembedded/ with TortoiseSVN, but I do not know how
I downloaded Mono software (http://xamarin.com/monoforandroid) and the samples from the xamarin website (http://samples.xamarin.com/Android). When
Exploring External Accessory Framework to connect iOS device via bluetooth. I downloaded Apple's EADemo
I downloaded the VS2010 CTP from here: http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&displaylang=en It took a while to download
downloaded Windows XP SP3 ISO image from Microsoft.com here http://www.microsoft.com/en-us/download/details.aspx?id=25129 and I am using
Downloaded Reachability from Apple, using this method to check for an active connection: -(BOOL)isReachable{
I downloaded and edited a code that from internet, basically what I want to
I downloaded the boost library for android from here , but an error occurs
I downloaded SwiffCore (https://github.com/musictheory/SwiffCore) for iOS and the Demo project contains a the main
I downloaded some sample code which includes a database query within the markup code.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.