I\'m new to iOS development and using Xcode and I\'m having trouble getting Alamofire to work within a Playground. There\'s some functionality I\'d like to test out for proo
Apple provides excellent step-by-step instruction to do so here: Importing Custom Frameworks Into a Playground
Here is what I consider to be the simplest straight line path:
brew install carthage
echo "github \"Alamofire/Alamofire\"" > Cartfile
carthage update
Carthage/Build/{iOS / OSX}
directory, drag the Alamofire.framework file into your link library list: {Project Name} -> {Target Name} -> Build Phases -> Link Binary With Libraries
Command-N (create file) -> {Platform} -> Source -> Playground
File -> Save as Workspace
. To be paranoid, I close the project / workspace and (re)open the workspace.import Alamofire
You can try moving library to
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/System/Library/Frameworks/
Then you can import and use it right in your playground
You can create a playground within the project also like in this tutorial
Cocoa Touch Framework
target (it doesn't need to have unit tests)
@testable import ModuleFramework