Issue with iphone sdk 4.2.1

前端 未结 8 946
别跟我提以往
别跟我提以往 2020-11-29 22:56

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: Un

相关标签:
8条回答
  • 2020-11-29 23:15

    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.

    0 讨论(0)
  • 2020-11-29 23:18

    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.

    0 讨论(0)
提交回复
热议问题