iOS app with framework crashes on device: dyld: Library not loaded, Xcode 6 Beta
Hello everyone! I'm new to iOS development and just started learning Swift. I created my first dynamic framework in Xcode 6 Beta to share common code between the main app and its extension (Today Extension). Everything builds and runs fine on the simulator, but when I run the app on a real device (iPhone 5s, iOS 8 beta), it crashes immediately after launch with the error:
```
dyld: Library not loaded: @rpath/MyFramework.framework/MyFramework
Referenced from: /var/containers/Bundle/Application/.../MyApp.app/MyApp
Reason: image not found
```
I added the framework to the project as usual: dragged it into Xcode, selected "Copy items if needed", added MyFramework.framework in Target -> General -> Embedded Binaries. In Build Settings...
No answers yet.
Log in to leave an answer