-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
2b0da35
to
950586d
Compare
90bfc2f
to
cc24b7d
Compare
- 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; |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
cc24b7d
to
fa32d3a
Compare
} | ||
|
||
// Then | ||
XCTAssertEqual(count, 0) | ||
XCTAssertGreaterThanOrEqual(count ?? -1, 0) |
There was a problem hiding this comment.
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.
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.