Issue with iphone sdk 4.2.1

Solution 1:

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.

Solution 2:

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.

Solution 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.

Solution 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?

Solution 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).