Solutions for Xcode 7 dyld errors

After upgrading to Xcode 7 beta, many developers are getting following errors:


  • "dyld: framework not found"
  • "dyld: Library not loaded"
  • "dyly: symbol not found"


There's no all-in-one solution for all of them. Depending on where you are getting this error from, e.g. in simulator or on device, there may be a different approach to solve it.


For "Library not loaded" and "framework not found" errors, go to "Build Settings" and search for "search path". Make sure the paths to your library and frameworks are included in the "Library Search Paths" and "Framework Search Paths".

This was suggested by martinlexa-merck on an Github Issue, https://github.com/Carthage/Carthage/issues/536

And it is

For on device only problems, for example, I was getting "dyly: symbol not found" only when I try to run my App on my iPhone but when running in simulator everthing's fine, try the following:

  • Clean and Rebuild
  • Delete "Derived Data" in "Window -> Projects"


If both steps above don't help at all. Try the following:


Clone your repo somewhere else than its original place, assuming you are using some kind of version control, and try build it and run it from there.

This worked for me. I know, it's weird that this actually works.

I hope this post will help other developers like me.

Solutions for Xcode 7 dyld errors
 
 
Q