Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UUID mismatch detected with the loaded library

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 ?

like image 331
Ronnie Liew Avatar asked Oct 18 '08 16:10

Ronnie Liew


2 Answers

Uninstalling and reinstalling both the iOS on the device and the SDK did not fix this for me. The only way I was able to get around this issue was by deleting the DeviceSupport files for the 4.2.1 iOS version, which can be found at:

/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ 

After deleting the files and restarting Xcode, I plugged in my device and was prompted to restore the symbol files from the device itself - it took about 5 minutes and after this, everything was back to working perfectly.

like image 189
Andrew Vilcsak Avatar answered Sep 28 '22 01:09

Andrew Vilcsak


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.

like image 21
Jin Liew Avatar answered Sep 28 '22 01:09

Jin Liew