提交 559ef09b 编写于 作者: M Mattt Thompson

Adding Alamofire.playground

上级 fd74161f
......@@ -16,4 +16,3 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
*.playground
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='3.0' sdk='iphonesimulator'>
<sections>
<code source-file-name='section-1.swift'/>
</sections>
<timeline fileName='timeline.xctimeline'/>
</playground>
\ No newline at end of file
import XCPlayground
import Foundation
import Alamofire
// Allow network requests to complete
XCPSetExecutionShouldContinueIndefinitely()
Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
.responseString { (request, response, string, error) in
println(request)
println(response)
println(string)
}
/*
[BUG] In Xcode 6.0.1, execution fails with the following error:
IDEPlaygroundExecution: Playground execution failed: error: Couldn't lookup symbols:
__TWPSS9Alamofire20URLStringConvertible
__TF9Alamofire7requestFTOS_6MethodPS_20URLStringConvertible_10parametersGSqGVSs10DictionarySSPSs9AnyObject___8encodingOS_17ParameterEncoding_CS_7Request
__TFO9Alamofire6Method3GETFMS0_S0_
__TIF9Alamofire7requestFTOS_6MethodPS_20URLStringConvertible_10parametersGSqGVSs10DictionarySSPSs9AnyObject___8encodingOS_17ParameterEncoding_CS_7RequestA2_
__TMaC9Alamofire7Request
__TFC9Alamofire7Request14responseStringfDS0_FFTCSo12NSURLRequestGSqCSo17NSHTTPURLResponse_GSqSS_GSqCSo7NSError__T_DS0_
If you have a proposed fix, please send a Pull Request: https://github.com/Alamofire/Alamofire/pulls
*/
<?xml version="1.0" encoding="UTF-8"?>
<Timeline
version = "3.0">
<TimelineItems>
</TimelineItems>
</Timeline>
......@@ -355,7 +355,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx";
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
......@@ -373,7 +373,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx";
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
};
name = Release;
};
......
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Alamofire.playground">
</FileRef>
<FileRef
location = "group:Alamofire.xcodeproj">
</FileRef>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册