Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vegashacker

macrumors newbie
Original poster
Apr 20, 2008
14
2
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!
 
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.