Re: Why won't iOS app using MKMapView compile?
Re: Why won't iOS app using MKMapView compile?
- Subject: Re: Why won't iOS app using MKMapView compile?
- From: Greg Parker <email@hidden>
- Date: Fri, 8 Jul 2011 17:07:18 -0700
On Jul 8, 2011, at 4:27 PM, G S wrote:
> First of all, thanks a lot for the responses.
>
> I have compiled a couple of examples, and they do build. That makes
> this all the more perplexing. The MapCallouts tutorial is one that I
> tried.
> In their file that uses MKMapView, these are the import statements:
>
> #import <UIKit/UIKit.h>
> #import <MapKit/MapKit.h>
>
> Now the import statements in my file that uses MKMapView:
>
> #import <UIKit/UIKit.h>
> #import <MapKit/MapKit.h>
>
> Yep, identical.
>
> Now let's take a look at the included frameworks:
>
> http://farm7.static.flickr.com/6136/5917058068_14504106f4_z.jpg
>
> I link in everything they do.
>
> I refer to math.h in one file in my project (which works, and is not
> included in the problematic file). If I comment out that inclusion,
> compilation still fails with the same complaint.
>
> I've tried removing and re-adding the frameworks to the project (most
> of us have probably seen this fix things before). I cleaned the
> project and restarted Xcode. Still no dice.
>
> Harumph.
Try #import <math.h> as the very first thing in your file.
Try disabling precompiled headers.
Try preprocessing your file and the example file and look for differences.
Check the deployment target of your project and the example project; MKGeometry's inline function will be ifdef'ed out depending on the deployment target.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden