Notes & Commentary

Smaller thoughts and bits not big enough for the Front Page.

Fixing “phone number detection not supported” warning in XCode

August 12th, 2009 · 5 Comments

I’m working on an iPhone app for WelcomeToYourMac, and during compilation I kept getting a warning saying:

warning: Turning off phone number detection is not supported on iPhone OS versions prior 3.0.

I couldn’t find the answer on Google, so I kept poking around in Interface Builder until I finally found the answer, and I thought I’d go ahead and share it here – just in case your as compulsive about squasing warnings as I am!  :-)

First I double checked my build properties were all set to iPhone OS 3.0. right click on your target

picture-37

to show and click Get Info to show:

Build Properties

Once confirmed, I opened the problematic .xib in Interface Builder and found the culprit. Press the unassuming info button Info Button then set the Deployment Target for that specific .xib!

Deployment Target

It had been set to OS 2.0. Switching the .xib’s target deployment to 3.0 fixed the problem.

Easy!

Post to Twitter Tweet This

Tags: iphone · programming

5 responses so far ↓

  • 1 nite_man // Aug 20, 2009 at 12:48 am

    Thanks a lot for your post. It really helped me :) Maybe you also know howto solve that warning:

    The ‘navigationItem’ outlet of a UIViewController has been deprecated. Navigation items are required prior to loading a view controller’s view. Instead of an outlet, consider embedding the navigation item in the view controller.

  • 2 Adam Wulf // Aug 31, 2009 at 11:11 pm

    @nite_man, I do remember running across that error too, but don’t remember all the specfiics of how I fixed it. The gist is that I had to remove the navigationItem from the xib in InterfaceBuilder, and then build one programmatically in the .m file instead of using an IBOutlet. Hope that helps!

  • 3 nite_man // Aug 31, 2009 at 11:47 pm

    @Adam Wulf: Thanks a lot. I did the same and it helped :)

  • 4 softfunk // Sep 29, 2009 at 6:18 am

    Cool! Hi, I’m Japanese some kind of iPhone developer and that you posted problem what I want. so now I solved everything. Thank you so much!

  • 5 Dav // Nov 6, 2009 at 1:45 pm

    Thanks, that was driving me nuts!

Leave a Comment or