I'm creating a new Cocoa Touch Framework (MyFramework.framework), which will have a dependency on Alamofire. This framework will be written in Swift. As a test I started a new Cocoa Touch Framework project:
File > New > Project > Framework & Library > Cocoa Touch Framework
Then, in the terminal I performed:
pod init
under this projects directory. In the newly created Podfile I added the following:
// Uncomment this line to define a global platform for your project
platform :ios, '9.0'
// Uncomment this line if you're using Swift
use_frameworks!
pod 'Alamofire'
Once again, in the Terminal I performed:
pod install
and started coding away.
Everything seemed well and good till I used the MyFramework.framework Product in a Single View Project. When I attempt to run the project I get the following issue:
dyld: Library not loaded: @rpath/testfm.framework/MyFramework
Referenced from: /var/containers/Bundle/Application/D4456F6A-2EBB-4AF9-B974-37A66E42D374/test.app/test
Reason: image not found
please let me know if you need more information.