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

Xcode 10 and Swift 4.2 Support #10

Merged
merged 9 commits into from
Sep 15, 2018
Merged

Conversation

cnoon
Copy link
Member

@cnoon cnoon commented Sep 13, 2018

This PR updates the Xcode project to support Xcode 10 and Swift 4.2. It also bumps the Xcode compatibility to 9.3 and enables code coverage generation for all non-ci schemes.

@cnoon cnoon added this to the 3.2.1 milestone Sep 13, 2018
@cnoon cnoon self-assigned this Sep 13, 2018
@cnoon cnoon force-pushed the feature/xcode-10-and-swift-4.2 branch 12 times, most recently from 2b0da35 to 950586d Compare September 14, 2018 17:54
@cnoon cnoon force-pushed the feature/xcode-10-and-swift-4.2 branch from 90bfc2f to cc24b7d Compare September 14, 2018 19:05
- xcodebuild -version
- xcodebuild -showsdks

# Build Framework in Debug and Run Tests if specified
- if [ $RUN_TESTS == "YES" ]; then
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES test | xcpretty -c;
xcodebuild -project "$PROJECT" -scheme "$SCHEME" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=YES ENABLE_TESTABILITY=YES test | bundle exec xcpretty -c;
Copy link
Member Author

Choose a reason for hiding this comment

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

Specifying the sdk can cause some issues. Best to remove it and rely on the settings in the Xcode project.

@@ -0,0 +1,4 @@
source "https://rubygems.org"

gem "cocoapods", "~> 1.6.0.beta.1"
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to run the 1.6 beta in order to avoid some odd code signing errors.

@cnoon cnoon force-pushed the feature/xcode-10-and-swift-4.2 branch from cc24b7d to fa32d3a Compare September 14, 2018 19:07
}

// Then
XCTAssertEqual(count, 0)
XCTAssertGreaterThanOrEqual(count ?? -1, 0)
Copy link
Member Author

Choose a reason for hiding this comment

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

This test was SUPER unreliable in release on CI before. Seems to be much more solid now and still matches the original intent of the test.

@ejensen ejensen merged commit c8cdb35 into master Sep 15, 2018
@ejensen ejensen deleted the feature/xcode-10-and-swift-4.2 branch September 15, 2018 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants