Dyld Message- Library not loaded - @rpath/libswiftAVFoundation.dylib in iOS

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.