Skip to content

[3.0] [CloudKit overlay] Work around an NSError bridging issue specific to CKError #4960

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

Merged
merged 1 commit into from
Sep 23, 2016

Conversation

DougGregor
Copy link
Member

While here, fix up the type signature of
CKError.partialErrorsByItemID; it doesn't make sense to use NSObject
now that we have AnyHashable.

This is an awful PR; it narrowly works around an issue with a specific API, and omits a test case because the testing harness isn't set up to handle testing frameworks that require entitlements. I've manually verified that this workaround makes the APIs usable and am looking into the issue of NSError subclasses more generally.

Resolves rdar://problem/27936562.

(cherry picked from commit 661df18)

…CKError.

While here, fix up the type signature of
CKError.partialErrorsByItemID; it doesn't make sense to use NSObject
now that we have AnyHashable. Fixes rdar://problem/27936562.

(cherry picked from commit 661df18)
@DougGregor DougGregor added this to the Swift 3.0 milestone Sep 23, 2016
@DougGregor
Copy link
Member Author

@swift-ci please test macOS

@DougGregor
Copy link
Member Author

@moiseev , can you take a look at this awful PR?

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 29eece8
Test requested by - @DougGregor

@DougGregor
Copy link
Member Author

This failed somewhere in StdlibUnittest... which wasn't touched by this change at all.

@DougGregor
Copy link
Member Author

@swift-ci please test

@moiseev
Copy link
Contributor

moiseev commented Sep 23, 2016

:shipit:

@DougGregor DougGregor assigned DougGregor and tkremenek and unassigned DougGregor Sep 23, 2016
@tkremenek tkremenek merged commit bc641c1 into swiftlang:swift-3.0-branch Sep 23, 2016
@DougGregor DougGregor deleted the fix-27936562-3_0 branch September 23, 2016 21:10
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.

4 participants