Skip to content

Commit 88cdede

Browse files
committed
Fixed the building issue for Xcode 6.3
Finally, the app starts working again with the new version of Xcode and Swift complier, hooray.
1 parent 20bcd5e commit 88cdede

File tree

86 files changed

+12628
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+12628
-31
lines changed

Cartfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "SwiftyJSON/SwiftyJSON"
2-
github "ishkawa/Alamofire"
1+
github "Alamofire/Alamofire"
2+
github "SwiftyJSON/SwiftyJSON"

Cartfile.lock

Lines changed: 0 additions & 2 deletions
This file was deleted.

Cartfile.resolved

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github "Alamofire/Alamofire" "1.2.0"
2+
github "SwiftyJSON/SwiftyJSON" "2.2.0"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Xcode
2+
3+
build/
4+
*.pbxuser
5+
!default.pbxuser
6+
*.mode1v3
7+
!default.mode1v3
8+
*.mode2v3
9+
!default.mode2v3
10+
*.perspectivev3
11+
!default.perspectivev3
12+
xcuserdata
13+
*.xccheckout
14+
*.moved-aside
15+
DerivedData
16+
*.hmap
17+
*.ipa
18+
*.xcuserstate
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: objective-c
2+
osx_image: xcode63
3+
branches:
4+
only:
5+
- master
6+
env:
7+
- LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8
8+
before_install:
9+
- gem install xcpretty -N
10+
script:
11+
- set -o pipefail
12+
- xcodebuild -project Alamofire.xcodeproj -scheme "Alamofire iOS" -sdk iphonesimulator
13+
-destination "platform=iOS Simulator,name=iPhone 6" ONLY_ACTIVE_ARCH=NO test | xcpretty -c
14+
- xcodebuild -project "iOS Example.xcodeproj" -scheme "iOS Example" -sdk iphonesimulator
15+
-destination "platform=iOS Simulator,name=iPhone 6" ONLY_ACTIVE_ARCH=YES build | xcpretty -c
16+
- pod lib lint --quick
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<playground version='3.0' sdk='iphonesimulator'>
3+
<sections>
4+
<code source-file-name='section-1.swift'/>
5+
</sections>
6+
</playground>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import XCPlayground
2+
import Foundation
3+
import Alamofire
4+
5+
// Allow network requests to complete
6+
XCPSetExecutionShouldContinueIndefinitely()
7+
8+
Alamofire.request(.GET, "http://httpbin.org/get", parameters: ["foo": "bar"])
9+
.responseString { (request, response, string, error) in
10+
println(request)
11+
println(response)
12+
println(string)
13+
}
14+
15+
/*
16+
[BUG] In Xcode 6.0.1, execution fails with the following error:
17+
18+
IDEPlaygroundExecution: Playground execution failed: error: Couldn't lookup symbols:
19+
__TWPSS9Alamofire20URLStringConvertible
20+
__TF9Alamofire7requestFTOS_6MethodPS_20URLStringConvertible_10parametersGSqGVSs10DictionarySSPSs9AnyObject___8encodingOS_17ParameterEncoding_CS_7Request
21+
__TFO9Alamofire6Method3GETFMS0_S0_
22+
__TIF9Alamofire7requestFTOS_6MethodPS_20URLStringConvertible_10parametersGSqGVSs10DictionarySSPSs9AnyObject___8encodingOS_17ParameterEncoding_CS_7RequestA2_
23+
__TMaC9Alamofire7Request
24+
__TFC9Alamofire7Request14responseStringfDS0_FFTCSo12NSURLRequestGSqCSo17NSHTTPURLResponse_GSqSS_GSqCSo7NSError__T_DS0_
25+
26+
If you have a proposed fix, please send a Pull Request: https://github.com/Alamofire/Alamofire/pulls
27+
*/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'Alamofire'
3+
s.version = '1.2.0'
4+
s.license = 'MIT'
5+
s.summary = 'Elegant HTTP Networking in Swift'
6+
s.homepage = 'https://github.com/Alamofire/Alamofire'
7+
s.social_media_url = 'http://twitter.com/mattt'
8+
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
9+
s.source = { :git => 'https://github.com/Alamofire/Alamofire.git', :tag => s.version }
10+
11+
s.ios.deployment_target = '8.0'
12+
s.osx.deployment_target = '10.9'
13+
14+
s.source_files = 'Source/*.swift'
15+
16+
s.requires_arc = true
17+
end

0 commit comments

Comments
 (0)