Skip to content

Fix Xcode build #1818

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

Closed
wants to merge 1 commit into from
Closed

Conversation

otaviolima
Copy link
Contributor

Using latest master (60651e2) and same toolchain that this commits points to (swift-DEVELOPMENT-SNAPSHOT-2019-01-10-a) I'm unable to build using Xcode unless I make the following changes.

Not sure if those fixes goes through PR's too.

@ikesyo
Copy link
Member

ikesyo commented Jan 14, 2019

@swift-ci Please test

@@ -35,7 +35,7 @@ private func getTestData() -> [Any]? {
XCTFail("Unable to deserialize property list data")
return nil
}
guard let parsingTests = testRoot[kURLTestParsingTestsKey] as? [Any] else {
guard let parsingTests = testRoot?[kURLTestParsingTestsKey] as? [Any] else {
Copy link
Member

@ikesyo ikesyo Jan 14, 2019

Choose a reason for hiding this comment

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

This is related to SE-0230.

guard let testRoot = try? PropertyListSerialization.propertyList(from: data, options: [], format: nil) as? [String : Any] else {

This would break Linux builds which is built using Swift 5 mode.

@spevans
Copy link
Contributor

spevans commented Jan 15, 2019

I think TestUUID.swift also needs to be added into the project / TestFoundation target

@otaviolima
Copy link
Contributor Author

@spevans

There is an open PR for the TestUUID.swift case: #1824

@ikesyo
Copy link
Member

ikesyo commented Jan 16, 2019

#1824 has been merged.

@ikesyo
Copy link
Member

ikesyo commented Jan 19, 2019

Closing this in favor of #1829. Thanks for the PR though!

@ikesyo ikesyo closed this Jan 19, 2019
@otaviolima otaviolima deleted the fix-xcode-build branch January 19, 2019 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants