Skip to main content

Issue with iphone sdk 4.2.1



Probably a silly question. When running my project on the Device in the debug mode I get a lot of warnings al having the following string:







warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148a)/Symbols/System/Library/PrivateFrameworks/







I think its due to the space between "4.2.1" and "(8C148a)". How can i get rid of it? It must be a setting somewhere in Xcode.





I dont have these warnings on the simulator.





thanks in advance, Christian


Comments

  1. I had this issue with 4.2.1 (8C148a), which I believe is caused by differing DeviceSupport files on the phone and in XCode. I tried many things, but eventually resolved it by deleting this folder:

    /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148a)/

    After this I plugged in my iOS device and was asked to connect and restore the symbol files from the device, and it worked normally again.

    ReplyDelete
  2. I was getting:

    warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).

    Version 4.2.1 does not include 'info/dns.so'. At least that was the case for me. However, it does exist in the 4.2 directory and is pointed to by the /DeviceSupport/Latest shortcut. I simply copy-pasted 'info/dns.so' to where the debugger was looking for it and that seemed to fix the warning.

    ReplyDelete
  3. When you plug an iOS device (iPad) with a slightly newer OS than the the ones in the SDK, a button to download new symbols should appear in the Organizer window of Xcode. Hit it and wait.

    ReplyDelete
  4. I've seen errors like that when my device wasn't on the same version as what I was building for. Are you sure you're not on a 4.2 beta?

    ReplyDelete
  5. I don't think 8C148a is "final"; final builds numbers never seem to end in a letter (my phone is reporting "4.2.1 (8C148)"). I haven't debugged apps on it yet (I got bored waiting for it to extract symbols and went home).

    4.2 GM was 8C134, so you're certainly running newer software, but something somewhere is getting the build number wrong.

    But I digress.



    What directories are in /Developer/Platforms/iPhoneOS.platform/DeviceSupport? If "4.2.1 (8C148a)" doesn't exist but "4.2.1" does, you might have luck doing something like this in Terminal:

    cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport
    ln -s "4.2.1" "4.2.1 (8C134a)"


    Equivalently, if "4.2.1 (8C148)" exists, do something like this instead:

    ln -s "4.2.1 (8C148)" "4.2.1 (8C148a)"


    You can generally use this trick to get Xcode to talk to a beta device without installing a beta SDK; this is useful if your company has some people running the beta (for testing purposes) and other people on the latest "final" (for release purposes).

    ReplyDelete
  6. There's a mismatch at the moment, where the released version of 4.2.1 is ahead of the SDK version 4.2

    @Khrob's comment fixed it for me though!

    ReplyDelete
  7. Until they provide a solid SDK, a cool workaround is to :

    1 - select the Executable ( In 'Executables' in the project browser ),

    2 - get info and turn off "Break on Debugger() and DebugStr()"*

    Cheers, and best wishes for 2011.

    T

    This does not disable NSLog.

    ReplyDelete
  8. I have 4.2.1 on an iPhone 3G and Xcode 3.2.5 running on a MacBook Pro with 10.6.6. After a clean install of Xcode, I was getting the prompt to download symbols for 4.2.1 after plugging in my iPhone. After the transfer, I would no longer get the prompt when attaching the iPhone, but I was getting tons of "unable to read symbols" messages.

    First, what did not work for me:


    Creating symbolic link to '4.2 (8C134)' with the name '4.2.1 (8C148)'
    Creating symbolic link inside directory '4.2.1 (8C148)' like there is in '4.2 (8C134)' to the ../../Developer/SDKs/iPhoneOS4.2.sdk


    Both of the above caused the 'UUID mismatch' errors for several libraries. GDB would start but appear to hang.

    Finally, what is currently working for me:


    % cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport
    % mkdir '4.2.1 (8C148)' # if it does not exist
    % cd '4.2.1 (8C148)'
    % cp ../4.2\ \(8C134\)/DeveloperDiskImage.dmg* .
    % cp -r ../../Developer/SDKs/iPhoneOS4.2.sdk Symbols
    Attempt to run debug session for an application and watch the Console. For each warning about a UUID mismatch, remove the file indicated in the log message (I had AudioToolbox, CoreMedia, and some others)
    Stop GDB and try again, hopefully with success


    At least for my application under development, everything now works fine. Hopefully, Xcode 4.0 will clear this up.

    ReplyDelete

Post a Comment

Popular posts from this blog

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex