[iPhone/Touch SDK] CoreLocation compiler errors when building for device

Discussion in 'Mac Programming' started by vegashacker, Apr 20, 2008.

  1. vegashacker macrumors newbie

    Joined:
    Apr 20, 2008
    #1
    I was able to get a simple CoreLocation example to compile in the simulator. Since apparently CL stuff doesn't work in the simulator, I decided to move to testing on an iPod Touch. When I build the program for the Touch, however, I get several compiler errors. The first is

    error: #error "Unknown Architecture." (in file included from CarbonCore.h).

    This is actually a simplified program I'm testing--all I did was start from a fresh iPhone app project and then add CoreLocation.framework to the Frameworks of the project.

    Has anyone in the developer program had success getting a simple "hello world" core location app working on their device? Any clues as to what I'm doing wrong?

    Thanks!
     
  2. vegashacker thread starter macrumors newbie

    Joined:
    Apr 20, 2008
    #2
    Not sure if this helps, but I should clarify that the error message appears in the file MyApp_prefix.pch:

    #ifdef __OBJC__
    #import <Foundation/Foundation.h> <------------ error here
    #import <UIKit/UIKit.h>
    #endif
     

Share This Page