Cannot use AddressBook Framework for iphone SDK

I am trying to use the AddressBook Framework with iPhone SDK, and I added the following framework to my xcode project:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Lib rary/Frameworks/AddressBook.framework
When I compile, references to classes such as ABAddressBook and ABPerson cannot be resolved. ('ABPerson undeclared ...'). However, It seems the C interface to AddressBook is defined.
I am using the framework in the iPhone SDK directory, and I have #import <AddressBook/AddressBook.h> in my header file, but it is not working for me. Any tips would be appreciated.

It does explain the OP's problems
Conserning add and checking if there are changed records in the addressbook I hear people complain about it and got refered to apple to report it as a bug for the sdk.
And since we still are limited when it comes to mentioning the api I will rather link something someone else wrote on the topic before.
Have a look here: http://forums.macrumors.com/showthread.php?p=5495200 that should give you some of the basics.

Similar Messages

  • Custom Framework for iPhone projects

    I have custom frameworks that I currently use in desktop applications. Some of these frameworks I would like to include in projects I plan to build for the iPhone. Is there a limitation when it comes to creating frameworks for the iPhone? If not what is the proper way to build frameworks for iPhone/Aspen?

    I was able to get around this by setting the "DYLDFRAMEWORKPATH" variable in my project. Go to Project -> Edit Active Executable menu. A dialog should pop up, navigate to the "Arguments" tab, and add a new environment variable (bottom-half of the dialog). You'll want to set to the path to something like "${DYLDFRAMEWORKPATH}:/Users/foo/your/framework/path", where the path is the path to where your framework is on disk. This should allow the simulator to find the Framework code at runtime.
    I have no idea how this will work when the code is loaded onto the phone. In addition, I'm having a lot of problems with 3rd party frameworks that reference code which isn't supported on the iPhone. Does anybody know if it is possible to compile a framework, where the target is the iPhone simulator?
    Thanks,
    -Andy Reitz.

  • HT4389 no cellular data tab . cannot use internet airtel gsm , iphone 4 factory unlocked

    no cellular data tab . cannot use internet airtel gsm , iphone 4 factory unlocked plz tell me how to set the apn settings

    There is no need to manually set the APN settings for Airtel. The settings are already in the phone since they are a supported carrier. if it's not working, contact Aritel.
    Where did you get the phone? If it was hacked to illegally unlock it or jailbroken, that might explain why it does not work.

  • I am a loyal iphone user and of course mine is the 3g iphone.. is that any solution on how to fix the whatsapp that cannot used on all 3g iphone?? i'm not gonna change my phone since i still love my old iphone 3g???

    I am a loyal iphone user and of course mine is the 3g iphone.. is that any solution on how to fix the whatsapp that cannot used on all 3g iphone?? i'm not gonna change my phone since i still love my old iphone 3g??? Please reply me. Thanks

    There is nothing you can do. The iOS for the iPhone 3G is too old to run WhatsApp

  • Can use monthly payment for iphone 4s in malaysia

    i wan to buy iphone 4s but i can't afford it because it to expensive which is RM 2199 malaysian ringgit. so anyone can tell me "can i use monthly payment for iphone 4s in malaysia "thanks"I HOPE YOU WILL ME BACK AS SOON AS U CAN"

    You will either need to get a credit card or take out a loan from a bank if your carrier does not offer credit for phone purchases.
    On a non-technical note, if you can't afford it and don't have sufficient credit to purchase it, maybe you should devote your energies to things more important than getting the latest smartphone.

  • "XSL Error: Cannot use a DTMLiaison for a input DOM node"

    This code:
    Writer writer = new StringWriter();
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    // Note: event.getDocument() returns a
    // org.apache.xerces.dom.DocumentImpl
    // sourced from xlms.jar
    processor.process(new XSLTInputSource(event.getDocument()),
    new XSLTInputSource(new FileReader(GDS_XSLT_STYLESHEET)),
    new XSLTResultTarget(writer));
    Gives this stacktrace:
    XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a weblogic.apache.xalan.xpath.xdom.XercesLiaison
    instead!
    XSL Error: SAX Exception
    weblogic.apache.xalan.xslt.XSLProcessorException:
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1756)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1648)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:876)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:600)
    1. All XML/XSLT classes are being sourced from weblogic.jar or xmlx.jar
    2. Both jar files come from the WLS installation (WLS6.0 + SP2)
    3. There are no other XML class providers on my class path
    4. This is a standalone application, not running within WLS; I'm using weblogic
    jarfiles here purely so I use the same XML implementation both inside and outside
    WLS. Is this a sensible approach?
    Any help, anyone?

    All works fine in WLS6.1, with this extra code:
    System.setProperty("javax.xml.transform.TransformerFactory",
    "weblogic.apache.xalan.processor.TransformerFactoryImpl");
    (or you could use -D)
    No longer concerned; we've moved off WLS6.0
    "Simon Spruzen" <[email protected]> wrote:
    >
    Interestingly, expanding the code to (the very verbose):
    Document sourceDocument = event.getDocument();
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    StringWriter source = new StringWriter();
    XMLSerializer sourceSerializer = new XMLSerializer(source, new OutputFormat(sourceDocument));
    sourceSerializer.asDOMSerializer();
    sourceSerializer.serialize(sourceDocument.getDocumentElement());
    StringWriter output = new StringWriter();
    processor.process(new XSLTInputSource(source.toString()),
    new XSLTInputSource(new FileReader(GDS_XSLT_STYLESHEET)),
    new XSLTResultTarget(output));
    (i.e. document -> string -> transform -> string)
    works just fine, but this code is far too long-winded for me to be happy
    with.
    (Note that one of XSLTInputSource's ctors does take a Node, so I'm assuming
    that
    it should be perfectly safe to pass a Document here)
    (Note also, that for various reasons at the moment, using JAXP's transformer
    factory
    is difficult for us)
    "Simon Spruzen" <[email protected]> wrote:
    This code:
    Writer writer = new StringWriter();
    XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
    // Note: event.getDocument() returns a
    // org.apache.xerces.dom.DocumentImpl
    // sourced from xlms.jar
    processor.process(new XSLTInputSource(event.getDocument()),
    new XSLTInputSource(new FileReader(GDS_XSLT_STYLESHEET)),
    new XSLTResultTarget(writer));
    Gives this stacktrace:
    XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a weblogic.apache.xalan.xpath.xdom.XercesLiaison
    instead!
    XSL Error: SAX Exception
    weblogic.apache.xalan.xslt.XSLProcessorException:
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1756)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1648)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:876)
         at weblogic.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:600)
    1. All XML/XSLT classes are being sourced from weblogic.jar or xmlx.jar
    2. Both jar files come from the WLS installation (WLS6.0 + SP2)
    3. There are no other XML class providers on my class path
    4. This is a standalone application, not running within WLS; I'm using
    weblogic
    jarfiles here purely so I use the same XML implementation both inside
    and outside
    WLS. Is this a sensible approach?
    Any help, anyone?

  • Using multiple systems for Iphone development?

    Hi,
    I have been using a borrowed macbook to start with IPhone development.
    Today I purchased my own MacBook and after installing the IPhone SDK, I plugged in my IPhone and was presented with a message saying that my IPhone was flagged as development on another machine. I had an option to continue or quit, so obviously I continued.
    Will this cause any problems further down the line?
    Has my IPhone been 'reflagged' as a development for my Macbook?
    Thanks

    Mohammed Sadiq wrote:
    Can we use c++ to develop applications for iPhone
    Yes.
    .... If so, how it is advantageous over objective C ?? ...
    It's disadvantageous since the only top layer API available for native iPhone apps is Cocoa. Every time a C++ program needs to make a call into the UIKit framework, it must use Obj-C and it may be necessary to wrap that Obj-C in additional code to implement the interface. While Xcode (with a little help from gcc) makes it easy to mix C++ with Obj-C in the same file, a C++ class can't be made from an Obj-C parent and vice-versa.
    Common reasons for using C++ in an iPhone app are: 1) A static library that wants a C++ interface is needed; 2) An app written in C++ is being ported to the iPhone; 3) The developer is much more comfortable with C++ and wishes to avoid Obj-C as much as possible. This can work if most of the app is OpenGL for example. In that case, only one short Obj-C file is necessary and most of that will be available as a Cocoa template.
    Hope that answers your question!
    \- Ray
    p.s.: I think you have quite a few open threads. Have solutions been provided for any of them? Here's how to close a thread: [http://discussions.apple.com/help.jspa#answers]. - R

  • TS3988 Cannot use iCloud on my iPhone

    I am trying to use iCloud on my iPhone but somehow it has an old email address as my Apple id and it will not let me change it.  I have no idea how it got that old email address, except it was my Apple id many years ago.  I have tried to delete iCloud from my phone but it tells me that I must enter a password for that old Apple id to delete Find My iPhone, which I apparently don't remember, so I cannot delete the app. I tried to recover the password for that email address thru forgot password but it says I put in the incorrect birthdate, and of course I can't have it email it to me since I no longer have that email address.  Everything else on my iPhone uses my current Apple id.  I have already signed out and back into everything using my current id.  Any other suggestions?  Thanks!!

    Welcome to the Apple community.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID verify the changes, enter the password as requested on your device and then turn off "find my phone".
    You should then change your Apple ID back to its current state, verify it once again, delete the iCloud account from your device and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.

  • Cannot find apps purchased for iPhone and iPad in iTune

    My iMac 27 running very slowly under Mavericks and since the upgrade of iTune to version 12.01.26 being impossible to complete a sync of my iPhone and iPad I decided to completely reset my iMac 27. Before doing this I copied all the files I wanted to keep on my MacBook Pro (including all my music and apps for iPhone and iPad).
    The OS X Mavericks being no longer available on the App Store I completely reset my iMac 27 and installed OS X Yosemite 10.10. Once this was done I copied back all the files I wanted to keep from my MacBook Pro (running Mavericks) to my iMac 27 (now running Yosemite). There was no problem with all my music now appearing in iTune. However I cannot find any of the apps I bought for my iPhone and iPad and which I copied back from my MacBook Pro (running Mavericks) to my iMac 27 (now running Yosemite).
    All the copied back apps appear correctly in the following directory of my iMac 27 :
    Musique/iTunes/iTunes Media/Mobile Applications/
    However none appear in any of the 5 sections in the Apps section of iTune.
    I decided to purchase an app in the App Store to see where the related file would appear and it appears in the same directory as stated above. I can see the icon of this newly purchased app in the app section of iTune but none of the apps I recopied from my MacBook Pro. Moreover when I go in the app store to see the newly purchased app I can see that it has been downloaded. However when I try to do the same for the apps I have already purchased and recopied the App Store tells me to purchase them. When I try to do the same on my MacBook Pro the App Store tells me that the apps have already been purchased, though they were the copied apps from my iMac 27 before full reset.
    Can someone help me to get all my previously purchased apps in iTune on my iMac 27 so I can sync my iPhone and iPad without loosing all the apps which appear on them ?

    Fruit Ninja has a unique iPhone version and a unique iPAD version. So for this particular App you can buy both. That said, if you decide to buy the iPhone version, the iPhone version will also work on your iPAD too. But the iPAD version which you have already purchased will not work on the iPhone.
    So to summarize, iPhone apps will work on iPAD, but iPAD unique or specific apps will not work on the iPhone. Some apps are designed to work on both beyond the features of just the iPhone app. The Fruit Ninja HD unique or specific iPAD app will not work on the iPhone.

  • IS IT WORTH TO USE IOS 8 FOR IPHONE 4S AS ON DATE ?

    Kindly guide whether ios 8 is to use now for iphone 4s or hav to wait for some improvements for 4s in near future ? as I came to understand iphone 4s users facing some difficulties. pls guide.
    thanx n regds.

    Even to get listed in the System Share Menu?
    I used the code below in an Air for Android project to do that:
      <intent-filter>
       <action android:name="android.intent.action.SEND" />
       <category android:name="android.intent.category.DEFAULT" />
       <data android:mimeType="text/plain" />
       </intent-filter>
    I was hoping for something similiar for iOS 8.

  • I need to download a version of Firefox that is optimized for Yahoo! but I cannot use Firefox 4 for Yahoo! because it doesn't support Norton 360 as of yet. Any suggestions?

    If you do have any suggestions, where can I find it? The only place I know of is the http://www.mozilla.com/en-US/firefox/all-older.html web site and you can only get version 3.6.16 there and it's NOT optimized for Yahoo!. Please help!
    Yahoo! keeps sending me the following message in a box on my screen along with the links to Firefox 4 and IE : Attention: Please upgrade to the latest Yahoo! optimized browser to ensure the best Yahoo! experience. But, as I stated in the question above, I cannot use Firefox 4 yet because it does NOT support Norton 360. Plus, I don't trust IE8 to use Facebook!
    Thanks for any help you can give me! Your very prompt attention to this question is greatly appreciated as I am sort of at a standstill before moving on with my work.
    Regards,
    Christine
    (Running Windows Vista Service Pack 2)

    Symantec have released an update for Norton 360 to make it compatible with Firefox 4, for details see http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=20100720113635EN&ln=en_US

  • How to use the Packager for iPhone ?

    Hi What`s up guys??
    I Download the Packager for iPhone and i can`t used this ?
    please help me and show me in picture how to use this.

    my question about http://labs.adobe.com/technologies/packagerforiphone/ package.

  • Can I use ipad charger for iphone 6

    Have retina iPad.  Can I use that charger for new iPhone 6?
    Thanks.

    Yes, the new iPhone 6 uses the same lightning cable.

  • Is it safe using itools software for iphone in terms of an warranteed iphone

    is it safe to use itools software for syncing iphone with my computer.does ill pass all warranty conditions after using itools to sync iphone {which is in warranty} with my pc.does iwill be able to get warranty on my iphone after using itools software.

    how to confirm that my iphone is jailbroken or not

  • I am profoundly deaf and cannot use a phone for voice calls. I need to contact

    I am profoundly deaf and only use my phone for internet, and text based. I need to raise a query on my account - that the local store cannot help with. How can I contact you without calling the help desk

    See the "Hearing or speech impaired" section of http://ee.co.uk/help/get-in-touch .

Maybe you are looking for