CFNetwork stuff is not compiling for iphone device

I am using CFNetwork. Everything compiles fine on the simulator. But when I compile for the device it fails complaining on CFHTTPMessageRef and on many CFNetwork constants.
I set the conditional linking as suggested in the doc:
Simulator - iPhone OS2.0 ARMv6 -framework CoreServices
Device - iPhone 2.0 ARMv6 -framework CFNetwork
I have also added CFNetwork.framework to my project. But the problem is still there.
Any suggestions on what to do to get this compile for the device?
Thanks

just.do.it
Thanks for the hint. It was a matter of header-files import. What threw me off is that it was working fine for the simulator without changes.
Thanks

Similar Messages

  • Is it possible to restrict an iBook for iPhone devices?

    Hi,
    I'm preparing a book to be sold on iBooks, but I've noticed that it wouldn't be read correctly on iPhone because it's a technical book (full of code and output source) and it won't be read well on small screens.
    May I set the book is not recommended for iPhone devices or restrict it to iPad? or anything? I don't want people to buy my book and find it difficult to read because of the coding parts being unreadable on iPhone... I'm attaching two examples of my book in Kindle...
    Thanks a lot in advance!
    Javier

    You can email or ring Apple:
    I cannot find the answer to my question. Where can I get additional help?
    iBooks provides support via email and phone:
    Send an email to [email protected]
    Contact the iBooks Support team by phone, Monday through Friday from 7 a.m. to 5 p.m. (PT). Local phone support is availabie in English in the countries listed below.
    Austria
    0800 070 267
    Australia
    1300 307 504
    (Note that this is a low tariff number.)
    Denmark
    8025 1619
    France
    0805 540 117
    Germany
    0800 664 5307
    Italy
    800 915 902
    Netherlands
    0800 0201 578
    Norway
    8005 6951
    Spain
    900 812 687
    Sweden
    020 100 528
    U.K.
    0800 975 0615
    U.S.
    +1 (877) 206-2092
    (Toll-free from U.S. and Canada.)

  • My iPhone 4 no longer connects to my car or alarm clock after a recent sync to my computer.  The message at I get when trying to. Connect is "this accessory is not optimized for the device" or something like that.  Anyone know how to fix this?

    My iPhone 4 no longer connects to my car or alarm clock after a recent sync to my computer.  The message at I get when trying to. Connect is "this accessory is not optimized for the device" or something like that.  Anyone know how to fix this?

    Hello there philp_69,
    If I understand correctly it sounds like your phone hasnt been recognized in iTunes on your PC since the last couple of updates. I would use the troubleshooting in the following article which will walk you through the steps one by one. 
    iPhone, iPad, or iPod touch not recognized in iTunes for Windows
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • I just upgraded my iPhone 3GS to 4.3.5 and my universal doc stopped working with it?  It has worked flawlessly for the last year and suddenly I get the message: "this iphone is not optimized for this device."  The music comes out too quiet to the speakers

    I just upgraded my iPhone 3GS to 4.3.5 and my universal doc stopped working with it?  It has worked flawlessly for the last year and suddenly I get the message: "this iphone is not optimized for this device."  I dismiss the message, but the remote no longer works with it and the music is too quite to the speakers.  The remote works fine with my Macbook Pro.  I tried a restore on the iPhone and started from scrach, but the same problem exists.
    Any help with this?
    Thanks,
    JT

    yep... my iphone 4 also having problem like astoker.. u see on dock pin using torch light.. i found 2 pin touch each other.. i solve my problem ready.. thanks wjosten.

  • My friend has an apple iphone 4s, He could not make the ID on icloud, becase at the end of ID creation procedure, the message displayed, " the free icloud ID is not eligible for this device"  what is the solution, thanx

    My friend has an apple iphone 4s, He could not make the ID on icloud, becase at the end of ID creation procedure, the message displayed, " the free icloud ID is not eligible for this device"  what is the solution, thanx

    Your friend will have to create his iCloud account on a different iOS device.  His device has already created the maximum number of iCloud accounts and cannot create another one.

  • I can't get me Ipod on my Iphone4 to play, it will until an error comes up saying this device is not optimised for iphone, with nothing plugged into it.

    My Ipod on my Iphone wont play and I have no volume bar.  I can hear when the phone rings and I can hear people talking when they call, it seems to be a software promlem that I dont know how to fix. I have been having this problem and I have realized that when the error comes that this accessory is not optimised for iphone, my Ipod wont work.  I have never had the air play button and my software is the current editon.

    Try #2 and #3 in link below. If neither work, you most likely have a hardware issue.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • This accessory not made for iphone

    "this accessory not made for iphone would you like to turn on airplane mode" message keeps coming up. I select no, I have to unplug and plug back in the apple earbuds, yes the ones that came with the iphone and it will work for a song or 2. Suspecting the earbuds perhaps have a short in them ( yes the right speaker is pretty distorted at volume) I tried to play my songs with no head set plugged in, and I still get the "this accessory not made for iphone would you like to turn on airplane mode" message. This phone is pretty much useless as an ipod, and frankly thats the only reason I bought it. My phone is approximately 3 months old. Is there a fix, is my phone a lemon or am I gonna have to send it out and be out of luck for awhile? Like most people Im very dependent on my phone and music. Thank you

    done211,
    The message you are describing occurs when either a device is connected to the dock connector port that is not designed to work with the iPhone, there is debris such as lint in the dock connector, or the dock connector itself is physically damaged.
    Connecting something to the headphone port will not cause this message to be displayed.
    Hope this helps,
    Nathan C.

  • Sitting in the dock - keeps prompting: this accessory not meant for iphone?

    while sitting in the provided dock - keeps prompting: this accessory not meant for iphone?
    What is up with that? Keeps doing it over and over...

    while sitting in the provided dock - keeps prompting:
    this accessory not meant for iphone?
    What is up with that? Keeps doing it over and over...
    1. It's not aligning properly with the dock. Take phone out and really look carefully at the dock and the port on the iPhone and attach them both very carefully making sure the phone is fully and completely seated in the dock.
    2. Even when seated properly, the message may display once. Hit OK and move on.
    Here's what I've learned having encountered this (though not the repetitive display of that message):
    The old docks for our other iPods really are not quite fully compatible with the iPhone. (Shame on you Apple). Somewhere on this board is a note that the new docks will be coming out soon as these 3rd parties re-vamp. I know I know... where does that leave all of us who have all this stuff that we had working just fine with our iPods pre-iPhone. I dunno but they better come up with some fix other than buy a whole new clock radio, et al.
    Business opportunity - make little dock adapters for really cheap that you just drop into all of your older iPod docks that go between the iPhone and the dock on the clock radios, et al that will bridge that gap, so to speak. Maybe somebody is already doing this???

  • Voicemail notifications not working for iphone 4s

    voicemail notifications not working for iphone 4s

    I had the same problem and after a lot of research here and on Verizon I finally discovered that it was an app named Onavo Extend that was preventing my voicemail from working. Other people have had success resetting their phone or network settings, disabling and reenabling SIRI, or deleting the Neilsen app (which I didn't have)  but those options didn't work for me. A lot of mods have claimed that this is not an Apple problem but if it is caused by an app that Apple allows to be sold in their app store, then it is an Apple problem, not a carrier problem. Of course, sometimes its just an ID 10 T problem.

  • Just started getting intermittent error on my 3G:This accessory is not optimized for iPhone..." but nothing is connected or plugged in to it or anything?

    Was just checking my iPhone and when I pressed the home button to wake it up the message "no sim installed" was on the screen,  obviously it was so I restarted the phone, that cleared it but then I started intermittently getting a popup message "this accessory is not optimized for iPhone...(don't remember the rest), did a hard reset and still happening once in a while, there isn't anything plugged into or connected to my phone at all though, would appreciate any help or advice please

    The most common reason for message "this accessory is not optimized for iPhone" with nothing plugged in, is dust, debris etc. in the iPhone dock port. Clean the dock port with a clean dry toothbrush. If the message returns again, clean the dock port again very carefully using some isopropyll alcohol, especially the pins which are on top of the dock mid rib.

  • Why is the app not available for my device?

    I've no problem using BT wifi on my device (Nook BNTV400) so why is the app not available for that device? It's not like the nook is proprietory, everything else I've tried to find in the play store works fine.
    Is the apk available for download direct from bt?

    if you can connect to btwifi without the app then I wouldn't bother trying to find the apk file
    if you have an android smartphone then you can download the app and get the apk file to sideload on to your nook
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • When I try to watch certain videos on my ipad2 it says Thanks for trying to access Flash Player. Unfortunately it is not available for your device because of restrictions that Apple has put in place.  Can any tell me what app I can download to replace it.

    When I try to watch certain videos on my ipad2 it says Thanks for trying to access Flash Player. Unfortunately it is not available for your device because of restrictions that Apple has put in place.  Can any tell me what app I can download to replace adobe flash player.
    Thanks

    Use the iSwifter browser from the app store. Works for most flash content.

  • "Document is not licensed for this device"

    I bought a law book through digital editions awhile ago and authorized it on my laptop at that time.  Since then, i have wiped the laptop and switched to a desktop computer.  When I tried authorizing the book on my desktop, it is saying the document is not licensed for this device.  Is there any way to fix this? I dont have the original laptop anymore.

    OK - here's the issue.
    When I downloaded Adobe Digital Editions I authorized my computer with my Adobe Account - apparently I wasn't supposed to do that.  McGraw-Hill said that their file would ONLY work if the computer was not authorized with an Adobe Account (they should have said so after the order).
    So after de-authorizing the account (ctrl+shift+d) I tried to open up the .acsm file again and I got a new error: e_lic_already_fulfilled_by_another_user.  I'm afraid that the license was used up by Adobe Account, never mind that it actually never downloaded.
    I guess the next step is to try and get another license issued?

  • Textbook download error message: "Document is not licensed for this device type"

    Hi everyone,
    I bought a textbook that came with a free digital edition. I downloaded it, then tried to load it into Digital Editions (which I registered to my account). The texbook almost finished importing, then at the very end gave me an error message that said "[The name of the book]: Document is not licensed for this device type." The textbook is published by Aspen Law. I'm running Mac OS X 10.7.1 (Lion). Has anyone else had a similar issue or know of a resolution?
    I've looked at other forum posts, and my situation seems remarkable like this one:
    http://forums.adobe.com/message/3098928#3098928
    I called the publishing company and tried to explain this to them, but they just said it was a problem with Adobe and Mac.
    Thanks in advance,
    Chris

    OK - here's the issue.
    When I downloaded Adobe Digital Editions I authorized my computer with my Adobe Account - apparently I wasn't supposed to do that.  McGraw-Hill said that their file would ONLY work if the computer was not authorized with an Adobe Account (they should have said so after the order).
    So after de-authorizing the account (ctrl+shift+d) I tried to open up the .acsm file again and I got a new error: e_lic_already_fulfilled_by_another_user.  I'm afraid that the license was used up by Adobe Account, never mind that it actually never downloaded.
    I guess the next step is to try and get another license issued?

  • I upgraded my iphone 4s to ios 6.0.1 2 days ago and since then it has been overheated! is ios 6.0.1 not meant for iphone 4s? how can i solve the isssue?

    I upgraded my iphone 4s to ios 6.0.1 2 days ago and since then it has been overheated! is ios 6.0.1 not meant for iphone 4s? how can i solve the isssue?

    Hi Dan,
    I tried to reset settings but it didn't seem to help much. Then I read a few posts about deleting my email accounts and recreating them, and that actually seemed to help a bit. Now the only time I notice it gets heated up is when I am either on whatsapp or Instagram...that's it!

Maybe you are looking for

  • Down Payment Clearing (F-54)

    I have an issue in F-54. While clearing the down payment system is not picking up the whole amount. It shows the difference. For E. g. Down Payment Entry (F-48) :- Vendor (Special G/L) Dr. 10000 TDS Cr. 2000 Bank Cr. 8000 While Clearing Down Payment

  • How do I install the cs6 master collection on an iMac?

    I have an adobe cs6 master collection disc. I tried installing it on my iMac and all I see is a bunch of weird folders with names like styles, templates, textures, legal, library, main. I don't see where the actual Adobe programs to install are. I fo

  • Acrobat Pro 9.2 crops text when converting from Word 2003

    When converting a Word 2003 file to PDF, using either PDF Maker or directly from Pro 9, the converted file crops a few lines of text at the top of some pages. Converting the same file by just printing to PDF is a work around, but this method does not

  • Moving three movie clips together to a y co-ordinate of an event click

    I have 9 buttons (with instance names mov_1 - mov_9) verticle along a page. I want movie clips a, b and c. with instance names (ltop, graphic and lbottom). to move in parrallel down the page to the y co-ordinates of each of the 9 button movie clips w

  • Non-cumulative value Parameters EFFECT

    Hi, I am customizing the 0IC_C03 inventory cube to get to the reports we need. But the query performance is extremly slow. We do not have BI Acceleratior, but aggregates are build for my query. So I duplicated the cube and removed 0MATERIAL from the