dyld error: image not found

Abhijeet picture Abhijeet · Aug 12, 2009 · Viewed 17.6k times · Source

I got this error message while running my application on simulator.

Dyld Error Message:

Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit

Referenced from: /Users/thomasschober/Excuse Me/build/Distribution-iphonesimulator/Excuse Me.app/Excuse Me

Reason: image not found

I am not able to understand what is problem. please help me to solve this problem

Thanks to all

Answer

user232633 picture user232633 · Apr 1, 2010

I have the same proble. I have tried all the suggestions above, they wont fix my problem. I finally found the solution:

  • Quit Xcode.
  • Open the BasketballTeams.xcodeproj folder (either in Finder with control click Show Contents of Package, or cd down into the directory with terminal) and delete the files that begin with your username (i.e Felipe.*)
  • delete the build directory
  • Open the project again in Xcode and try Build and Run again

Actually I suggest you to reset you simulator and clean all targets as well. It works for me, you may find the original post here: http://forums.pragprog.com/forums/83/topics/1095