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

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.