0

I added some Swift classes to my objective c project. then the project has no build errors but it crash immediately after running.

Dyld Message: Library not loaded: @rpath/libswiftAVFoundation.dylib

This is a common issue and I found some solutions, like cleaning project and cleaning drive data. but it didn't work.

Also I should mention that I have 2 targets. One with provision profile the other with developer profile. The one with provision profile crashes.

When I add the bridging header this crash happens when I remove it from target setting, app works but I cannot use Swift files.

Fattaneh Talebi
  • 727
  • 1
  • 16
  • 42
  • Possible duplicate of [dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib](https://stackoverflow.com/questions/32771796/dyld-library-not-loaded-rpath-libswiftavfoundation-dylib) – Cristik Feb 11 '19 at 06:49
  • @Cristik Thanks. but I checked it and answers didn't solve my problem. – Fattaneh Talebi Feb 12 '19 at 07:01
  • You need to know two things. 1) What rpath is set to (you want it to include `@executable_path/../Frameworks`) and 2) are the `.framework`s being copied into that folder? – trojanfoe Feb 12 '19 at 08:50
  • have you got the solution? – Bhuvanendra Pratap Maurya Dec 12 '19 at 11:06
  • Does this answer your question? [dyld: Library not loaded: @rpath/libswiftCore.dylib](https://stackoverflow.com/questions/26024100/dyld-library-not-loaded-rpath-libswiftcore-dylib) – Sahil Kapoor Mar 29 '22 at 09:27

0 Answers0