Library not loaded: @rpath/App.framework/App

Swift
// This is for xcode compilation
// In the target General tab, there is an Embedded Binaries 
// field. When you add the framework (embed & sign) the problem is solved
// 


Source

Also in Swift: