views:

6569

answers:

12

I get a "UUID mismatch" warning at the console when I try to build and run my app on my iPhone.

warning: UUID mismatch detected with the loaded library - on disk is: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblockdown.dylib =uuid-mismatch-with-loaded-file,file="/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/lib/liblockdown.dylib

Anyone has this issue and managed to resolve the warning ?

A: 

I get the same warning, but haven't managed to resolve it.

davidcann
+5  A: 

It's benign; don't worry about it. The message is telling you that a library on the device isn't exactly the same as a library in the SDK, but the difference between the libraries in this case isn't one which has any visible impact.

Eric Albert
That may be so, however in my case I can no longer access the console or debugger for an app I am running on the device.
Ryan Townshend
If by benign, I can't use the debugger then ya. That's kind of a big deal.
Sam Soffes
A: 

The same happens to me, but the application never finishes loading...

Bungler
A: 

so how do you fix it? !! i am getting this after 3.1 update

Kofi
A: 

Me too, I get this warning for every framework when Debugging on Device... and the application never loads.

warning: UUID mismatch detected with the loaded library...

Only started after I upgraded. Anyone figure out how to fix this? I even tried it on an empty xcode project, same thing... I read that it has to do with the debugger version not matching the sdk version or something...

I wrote apple with my support and they aren't getting back to me...

This is BS, I need to Device Debug!

A: 

If you unplug the device from mac, run the app on device. The app works except you won’t be able to utilize console to debug any problems on device. After searching for answers on developer forums, it is a very common problem among developers. However, there is no known solutions except a few possible tips.

This is an answer from another forum, and IT WORKS! I think it was from webbuilders.com??

Go figure???

access this URL for a good description; http://webbuilders.wordpress.com/2009/03/19/iphone-uuid-mismatch-detected-with-the-loaded-library/

CPLamb
+1  A: 

I believe this happens when the when Xcode/iPhone SDK is not up to date with the device's installed frameworks. Make sure the device software is up-to-date and install the latest version of Xcode/iPhone SDK - worked for me.

lmprods
+3  A: 

Completely uninstall the development tools with:

$ sudo /Developer/Library/uninstall-devtools --mode=all

(obviously change the path if you installed it somewhere besides the default location). After you install development tools, you should restart your machine. Now reinstall the development tools. This solved this problem for me.

I tried restoring my device before I reinstalled the development tools and it didn't solve anything. If reinstalling the development tools doesn't solve this, I'd probably try restoring your device. Hope that helps someone.

Sam Soffes
Thought this would be the one. This one didn't work for me. Very surprising. I thought it definitely would. This problem is driving me mad.
Oh Danny Boy
A: 

I had this problem also.

All I did was Quit XCode, Interface Builder. Started XCode, re-opened the project. Clean All Targets. Rebuild. Debug on my iPad in this case worked.

Jim Chapple
A: 

I don't think this is necessarily benign as suggested and the selected answer doesn't address how to stop the warning. The following should stop the warning:

  1. Unplugging iPhone or iPad from Mac
  2. Quit Xcode
  3. Delete Builds directory
  4. Launch Xcode, plug in iPhone and try again

YMMV, but this worked for me.

David Weiss
A: 

I know this is an old post, but maybe my solution will help others as I recently experienced this problem.

I recently upgraded to the iOS SDK 4.1 Beta 3 by downloading the SDK and Xcode updates. After installing this I got the same error as the original poster. Turns out to fix this I simply had to download and install the corresponding iOS version on my iPhone.

After I installed iOS Beta 3 on my iPhone, restored the phone, recompiled and ran, everything was back as it was.

Maurizio
+3  A: 

As Eric mentioned, this is due to the libraries on the phone being different to those in XCode.

I came across this issue when I try to debug an app from Xcode using: iPhone: iOS 4.2 beta 2 XCode: iOS SDK 4.1

However, if I try to debug using XCode with iOS SDK 4.2 beta 2, then it works fine.

From this, I conclude that the SDK in XCode must match the version of iOS on the phone for debugging to work.

Ensure the two match and you should be able to debug your app.

Jin Liew