mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
Compiler error with XCode beta6 in swift3_2 branch #164
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @laeroah on GitHub (Aug 23, 2017).
NSManagedObjectModelconstructorconvenience init?(contentsOf url: URL)returns an optional value but the function is expecting a nonoptional value.It seems that Xcode9 beta5 wasn't picking up this error for some reason. Xcode8 compiler will complain as expected.
Looks like the old version had the unwrapping, but was removed in new version:
@JohnEstropia commented on GitHub (Aug 24, 2017):
Ah, I fixed this in the Swift 4 branch completely misunderstanding this was a Swift 4 change and not an iOS 11 change. Sorry about that. Will push the fix for the 3.2 branch as well.
@laeroah commented on GitHub (Aug 24, 2017):
Thanks!
@JohnEstropia commented on GitHub (Aug 24, 2017):
Fixed in the
prototype/Swift_3_2branch as well. Thanks!