• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why won't iOS app using MKMapView compile?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Why won't iOS app using MKMapView compile? (From: G S <email@hidden>)
 >Re: Why won't iOS app using MKMapView compile? (From: Chris Ridd <email@hidden>)
 >Re: Why won't iOS app using MKMapView compile? (From: G S <email@hidden>)
 >Re: Why won't iOS app using MKMapView compile? (From: G S <email@hidden>)
 >Re: Why won't iOS app using MKMapView compile? (From: koko <email@hidden>)
 >Re: Why won't iOS app using MKMapView compile? (From: Conrad Shultz <email@hidden>)
 >Re: Why won't iOS app using MKMapView compile? (From: G S <email@hidden>)

  • Prev by Date: Re: Why won't iOS app using MKMapView compile?
  • Next by Date: Re: Why won't iOS app using MKMapView compile?
  • Previous by thread: Re: Why won't iOS app using MKMapView compile?
  • Next by thread: Re: Why won't iOS app using MKMapView compile?
  • Index(es):
    • Date
    • Thread