Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Xcode 8.0 / Swift 2.3 #95

Merged
merged 14 commits into from
Sep 20, 2016
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cartfile.private
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github "jspahrsummers/xcconfigs" ~> 0.9
github "Quick/Quick" ~> 0.9
github "Quick/Nimble" ~> 4.0
github "AliSoftware/OHHTTPStubs" ~> 4.7
github "Quick/Nimble" ~> 4.1
github "AliSoftware/OHHTTPStubs" ~> 5.2.0
4 changes: 2 additions & 2 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
github "Quick/Nimble" "v4.1.0"
github "AliSoftware/OHHTTPStubs" "4.8.0"
github "Quick/Quick" "v0.9.2"
github "AliSoftware/OHHTTPStubs" "5.2.0"
github "Quick/Quick" "v0.9.3"
github "antitypical/Result" "2.1.3"
github "jspahrsummers/xcconfigs" "0.9"
github "ReactiveCocoa/ReactiveCocoa" "v4.2.2"
2 changes: 1 addition & 1 deletion Carthage/Checkouts/OHHTTPStubs
Submodule OHHTTPStubs updated 147 files
2 changes: 1 addition & 1 deletion Carthage/Checkouts/Quick
50 changes: 28 additions & 22 deletions Heimdallr.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,9 @@
productReference = DC545DCD1A89F0F10051A575 /* HeimdallrTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
DC582F421BE1319F0017BE06 /* Heimdallr-Mac */ = {
DC582F421BE1319F0017BE06 /* Heimdallr-macOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = DC582F541BE1319F0017BE06 /* Build configuration list for PBXNativeTarget "Heimdallr-Mac" */;
buildConfigurationList = DC582F541BE1319F0017BE06 /* Build configuration list for PBXNativeTarget "Heimdallr-macOS" */;
buildPhases = (
DC582F3E1BE1319F0017BE06 /* Sources */,
DC582F3F1BE1319F0017BE06 /* Frameworks */,
Expand All @@ -637,14 +637,14 @@
);
dependencies = (
);
name = "Heimdallr-Mac";
name = "Heimdallr-macOS";
productName = "Heimdallr-Mac";
productReference = DC582F431BE1319F0017BE06 /* Heimdallr.framework */;
productType = "com.apple.product-type.framework";
};
DC582F4B1BE1319F0017BE06 /* Heimdallr-MacTests */ = {
DC582F4B1BE1319F0017BE06 /* Heimdallr-macOSTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = DC582F571BE1319F0017BE06 /* Build configuration list for PBXNativeTarget "Heimdallr-MacTests" */;
buildConfigurationList = DC582F571BE1319F0017BE06 /* Build configuration list for PBXNativeTarget "Heimdallr-macOSTests" */;
buildPhases = (
DC582F481BE1319F0017BE06 /* Sources */,
DC582F491BE1319F0017BE06 /* Frameworks */,
Expand All @@ -655,7 +655,7 @@
dependencies = (
DC582F4F1BE1319F0017BE06 /* PBXTargetDependency */,
);
name = "Heimdallr-MacTests";
name = "Heimdallr-macOSTests";
productName = "Heimdallr-MacTests";
productReference = DC582F4C1BE1319F0017BE06 /* HeimdallrTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
Expand Down Expand Up @@ -696,9 +696,9 @@
productReference = DC582FC91BE13EB30017BE06 /* ReactiveHeimdallrTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
DC582FF41BE148610017BE06 /* ReactiveHeimdallr-Mac */ = {
DC582FF41BE148610017BE06 /* ReactiveHeimdallr-macOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = DC5830061BE148610017BE06 /* Build configuration list for PBXNativeTarget "ReactiveHeimdallr-Mac" */;
buildConfigurationList = DC5830061BE148610017BE06 /* Build configuration list for PBXNativeTarget "ReactiveHeimdallr-macOS" */;
buildPhases = (
DC582FF01BE148610017BE06 /* Sources */,
DC582FF11BE148610017BE06 /* Frameworks */,
Expand All @@ -709,14 +709,14 @@
);
dependencies = (
);
name = "ReactiveHeimdallr-Mac";
name = "ReactiveHeimdallr-macOS";
productName = "ReactiveHeimdallr-Mac";
productReference = DC582FF51BE148610017BE06 /* ReactiveHeimdallr.framework */;
productType = "com.apple.product-type.framework";
};
DC582FFD1BE148610017BE06 /* ReactiveHeimdallr-MacTests */ = {
DC582FFD1BE148610017BE06 /* ReactiveHeimdallr-macOSTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = DC5830091BE148610017BE06 /* Build configuration list for PBXNativeTarget "ReactiveHeimdallr-MacTests" */;
buildConfigurationList = DC5830091BE148610017BE06 /* Build configuration list for PBXNativeTarget "ReactiveHeimdallr-macOSTests" */;
buildPhases = (
DC582FFA1BE148610017BE06 /* Sources */,
DC582FFB1BE148610017BE06 /* Frameworks */,
Expand All @@ -727,7 +727,7 @@
dependencies = (
DC5830011BE148610017BE06 /* PBXTargetDependency */,
);
name = "ReactiveHeimdallr-MacTests";
name = "ReactiveHeimdallr-macOSTests";
productName = "ReactiveHeimdallr-MacTests";
productReference = DC582FFE1BE148610017BE06 /* ReactiveHeimdallrTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
Expand All @@ -745,9 +745,11 @@
TargetAttributes = {
DC545DC11A89F0F10051A575 = {
CreatedOnToolsVersion = 6.1.1;
LastSwiftMigration = 0800;
};
DC545DCC1A89F0F10051A575 = {
CreatedOnToolsVersion = 6.1.1;
LastSwiftMigration = 0800;
};
DC582F421BE1319F0017BE06 = {
CreatedOnToolsVersion = 7.1;
Expand Down Expand Up @@ -781,12 +783,12 @@
projectDirPath = "";
projectRoot = "";
targets = (
DC582F421BE1319F0017BE06 /* Heimdallr-Mac */,
DC582F4B1BE1319F0017BE06 /* Heimdallr-MacTests */,
DC582F421BE1319F0017BE06 /* Heimdallr-macOS */,
DC582F4B1BE1319F0017BE06 /* Heimdallr-macOSTests */,
DC545DC11A89F0F10051A575 /* Heimdallr-iOS */,
DC545DCC1A89F0F10051A575 /* Heimdallr-iOSTests */,
DC582FF41BE148610017BE06 /* ReactiveHeimdallr-Mac */,
DC582FFD1BE148610017BE06 /* ReactiveHeimdallr-MacTests */,
DC582FF41BE148610017BE06 /* ReactiveHeimdallr-macOS */,
DC582FFD1BE148610017BE06 /* ReactiveHeimdallr-macOSTests */,
DC582FBF1BE13EB20017BE06 /* ReactiveHeimdallr-iOS */,
DC582FC81BE13EB30017BE06 /* ReactiveHeimdallr-iOSTests */,
);
Expand Down Expand Up @@ -1011,7 +1013,7 @@
};
DC582F4F1BE1319F0017BE06 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = DC582F421BE1319F0017BE06 /* Heimdallr-Mac */;
target = DC582F421BE1319F0017BE06 /* Heimdallr-macOS */;
targetProxy = DC582F4E1BE1319F0017BE06 /* PBXContainerItemProxy */;
};
DC582FCC1BE13EB30017BE06 /* PBXTargetDependency */ = {
Expand All @@ -1021,7 +1023,7 @@
};
DC5830011BE148610017BE06 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = DC582FF41BE148610017BE06 /* ReactiveHeimdallr-Mac */;
target = DC582FF41BE148610017BE06 /* ReactiveHeimdallr-macOS */;
targetProxy = DC5830001BE148610017BE06 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
Expand Down Expand Up @@ -1070,6 +1072,7 @@
DYLIB_CURRENT_VERSION = 1;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 2.3;
};
name = Debug;
};
Expand All @@ -1083,6 +1086,7 @@
DYLIB_CURRENT_VERSION = 1;
INFOPLIST_FILE = "Heimdallr/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
SWIFT_VERSION = 2.3;
};
name = Release;
};
Expand All @@ -1093,6 +1097,7 @@
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 2.3;
};
name = Debug;
};
Expand All @@ -1103,6 +1108,7 @@
INFOPLIST_FILE = "HeimdallrTests/Supporting Files/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_NAME = HeimdallrTests;
SWIFT_VERSION = 2.3;
};
name = Release;
};
Expand Down Expand Up @@ -1274,7 +1280,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DC582F541BE1319F0017BE06 /* Build configuration list for PBXNativeTarget "Heimdallr-Mac" */ = {
DC582F541BE1319F0017BE06 /* Build configuration list for PBXNativeTarget "Heimdallr-macOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DC582F551BE1319F0017BE06 /* Debug */,
Expand All @@ -1283,7 +1289,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DC582F571BE1319F0017BE06 /* Build configuration list for PBXNativeTarget "Heimdallr-MacTests" */ = {
DC582F571BE1319F0017BE06 /* Build configuration list for PBXNativeTarget "Heimdallr-macOSTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DC582F581BE1319F0017BE06 /* Debug */,
Expand All @@ -1310,7 +1316,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DC5830061BE148610017BE06 /* Build configuration list for PBXNativeTarget "ReactiveHeimdallr-Mac" */ = {
DC5830061BE148610017BE06 /* Build configuration list for PBXNativeTarget "ReactiveHeimdallr-macOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DC5830071BE148610017BE06 /* Debug */,
Expand All @@ -1319,7 +1325,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
DC5830091BE148610017BE06 /* Build configuration list for PBXNativeTarget "ReactiveHeimdallr-MacTests" */ = {
DC5830091BE148610017BE06 /* Build configuration list for PBXNativeTarget "ReactiveHeimdallr-macOSTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
DC58300A1BE148610017BE06 /* Debug */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582F421BE1319F0017BE06"
BuildableName = "Heimdallr.framework"
BlueprintName = "Heimdallr-Mac"
BlueprintName = "Heimdallr-macOS"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down Expand Up @@ -105,7 +105,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582F4B1BE1319F0017BE06"
BuildableName = "HeimdallrTests.xctest"
BlueprintName = "Heimdallr-MacTests"
BlueprintName = "Heimdallr-macOSTests"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -115,7 +115,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582F421BE1319F0017BE06"
BuildableName = "Heimdallr.framework"
BlueprintName = "Heimdallr-Mac"
BlueprintName = "Heimdallr-macOS"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -137,7 +137,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582F421BE1319F0017BE06"
BuildableName = "Heimdallr.framework"
BlueprintName = "Heimdallr-Mac"
BlueprintName = "Heimdallr-macOS"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -155,7 +155,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582F421BE1319F0017BE06"
BuildableName = "Heimdallr.framework"
BlueprintName = "Heimdallr-Mac"
BlueprintName = "Heimdallr-macOS"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582FF41BE148610017BE06"
BuildableName = "ReactiveHeimdallr.framework"
BlueprintName = "ReactiveHeimdallr-Mac"
BlueprintName = "ReactiveHeimdallr-macOS"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down Expand Up @@ -118,7 +118,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582FFD1BE148610017BE06"
BuildableName = "ReactiveHeimdallrTests.xctest"
BlueprintName = "ReactiveHeimdallr-MacTests"
BlueprintName = "ReactiveHeimdallr-macOSTests"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</TestableReference>
Expand All @@ -128,7 +128,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582FF41BE148610017BE06"
BuildableName = "ReactiveHeimdallr.framework"
BlueprintName = "ReactiveHeimdallr-Mac"
BlueprintName = "ReactiveHeimdallr-macOS"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -150,7 +150,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582FF41BE148610017BE06"
BuildableName = "ReactiveHeimdallr.framework"
BlueprintName = "ReactiveHeimdallr-Mac"
BlueprintName = "ReactiveHeimdallr-macOS"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand All @@ -168,7 +168,7 @@
BuildableIdentifier = "primary"
BlueprintIdentifier = "DC582FF41BE148610017BE06"
BuildableName = "ReactiveHeimdallr.framework"
BlueprintName = "ReactiveHeimdallr-Mac"
BlueprintName = "ReactiveHeimdallr-macOS"
ReferencedContainer = "container:Heimdallr.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
8 changes: 5 additions & 3 deletions HeimdallrTests/Core/OAuthAccessTokenKeychainStoreSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ class OAuthAccessTokenKeychainStoreSpec: QuickSpec {
beforeEach {
store = OAuthAccessTokenKeychainStore(service: "de.rheinfabrik.heimdallr.oauth.unit-tests")
}

describe("func storeAccessToken(accessToken: OAuthAccessToken?)") {

// Since there is a bug with writing to the keychain within the iOS10 simulator we had to
// disbale some test until the bug is fixed by apple. Radar: https://openradar.appspot.com/27844971
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: disable

xdescribe("func storeAccessToken(accessToken: OAuthAccessToken?)") {
let token = OAuthAccessToken(accessToken: accessToken, tokenType: tokenType, expiresAt: expiresAt, refreshToken: refreshToken)

it("stores the access token, token type, expiration date, and refresh token in the keychain") {
Expand Down Expand Up @@ -60,7 +62,7 @@ class OAuthAccessTokenKeychainStoreSpec: QuickSpec {
}
}

describe("func retrieveAccessToken() -> OAuthAccessToken?") {
xdescribe("func retrieveAccessToken() -> OAuthAccessToken?") {
context("when the keychain contains an access token") {
beforeEach {
keychain["access_token"] = accessToken
Expand Down
14 changes: 7 additions & 7 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
machine:
xcode:
version: 7.3
version: 8.0

dependencies:
override:
Expand All @@ -12,18 +12,18 @@ test:
xcodebuild
-sdk macosx
-workspace Heimdallr.xcworkspace
-scheme Heimdallr-Mac
-scheme Heimdallr-macOS
-configuration Debug
clean test |
tee $CIRCLE_ARTIFACTS/xcode_raw_heimdallr_mac.log |
tee $CIRCLE_ARTIFACTS/xcode_raw_heimdallr_macos.log |
xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/heimdallr-mac-results.xml
- set -o pipefail &&
xcodebuild
CODE_SIGNING_REQUIRED=NO
CODE_SIGN_IDENTITY=
PROVISIONING_PROFILE=
-sdk iphonesimulator
-destination 'platform=iOS Simulator,OS=9.3,name=iPhone 6s'
-destination 'platform=iOS Simulator,OS=10.0,name=iPhone 6s'
-workspace Heimdallr.xcworkspace
-scheme Heimdallr-iOS
-configuration Debug
Expand All @@ -34,18 +34,18 @@ test:
xcodebuild
-sdk macosx
-workspace Heimdallr.xcworkspace
-scheme ReactiveHeimdallr-Mac
-scheme ReactiveHeimdallr-macOS
-configuration Debug
clean test |
tee $CIRCLE_ARTIFACTS/xcode_raw_reactive_heimdallr_mac.log |
tee $CIRCLE_ARTIFACTS/xcode_raw_reactive_heimdallr_macos.log |
xcpretty --color --report junit --output $CIRCLE_TEST_REPORTS/xcode/reactive-heimdallr-mac-results.xml
- set -o pipefail &&
xcodebuild
CODE_SIGNING_REQUIRED=NO
CODE_SIGN_IDENTITY=
PROVISIONING_PROFILE=
-sdk iphonesimulator
-destination 'platform=iOS Simulator,OS=9.3,name=iPhone 6s'
-destination 'platform=iOS Simulator,OS=10.0,name=iPhone 6s'
-workspace Heimdallr.xcworkspace
-scheme ReactiveHeimdallr-iOS
-configuration Debug
Expand Down