CoreStore won't compile in Swift 3.2 and Swift 4 #142

Closed
opened 2025-12-29 15:25:27 +01:00 by adam · 9 comments
Owner

Originally created by @Plnda on GitHub (Jun 7, 2017).

/Users/Jason/git/telegraaf-ios/Pods/CoreStore/Sources/CoreStore+CustomDebugStringConvertible.swift:1202:9: Switch must be exhaustive

Originally created by @Plnda on GitHub (Jun 7, 2017). /Users/Jason/git/telegraaf-ios/Pods/CoreStore/Sources/CoreStore+CustomDebugStringConvertible.swift:1202:9: Switch must be exhaustive
adam added the fixed label 2025-12-29 15:25:27 +01:00
adam closed this issue 2025-12-29 15:25:27 +01:00
Author
Owner

@JohnEstropia commented on GitHub (Jun 7, 2017):

Currently working on Swift 3.2, thanks!

@JohnEstropia commented on GitHub (Jun 7, 2017): Currently working on Swift 3.2, thanks!
Author
Owner

@JohnEstropia commented on GitHub (Jun 7, 2017):

I've fixed @Plnda 's compiler error in the prototype/Swift_3_2 branch, but it seems CoreStore is breaking something in Swift so we might need to wait for feedback from the Swift team.

@JohnEstropia commented on GitHub (Jun 7, 2017): I've fixed @Plnda 's compiler error in the `prototype/Swift_3_2` branch, but it seems CoreStore is [breaking something in Swift](https://bugs.swift.org/browse/SR-4981) so we might need to wait for feedback from the Swift team.
Author
Owner

@athei commented on GitHub (Jun 7, 2017):

Can you look into the compile errors for Swift4, too? These are only few and seem to be easy to resolve. SWIFT_VERSION is set to 4.0 for the CoreStore target, when using cocoapods for some reason.

@athei commented on GitHub (Jun 7, 2017): Can you look into the compile errors for Swift4, too? These are only few and seem to be easy to resolve. SWIFT_VERSION is set to 4.0 for the CoreStore target, when using cocoapods for some reason.
Author
Owner

@Plnda commented on GitHub (Jun 7, 2017):

@athei the bug also happens on swift 4.0

@Plnda commented on GitHub (Jun 7, 2017): @athei the bug also happens on swift 4.0
Author
Owner

@JohnEstropia commented on GitHub (Jun 7, 2017):

@athei Yup I already fixed the easy compiler issues in the prototype/Swift_3_2 branch. The last issue is not a compiler error per-se, but a compiler crash.

@JohnEstropia commented on GitHub (Jun 7, 2017): @athei Yup I already fixed the easy compiler issues in the `prototype/Swift_3_2` branch. The last issue is not a compiler error per-se, but a compiler crash.
Author
Owner

@JohnEstropia commented on GitHub (Jun 8, 2017):

I have a workaround for Swift 3.2 on the prototype/Swift_3_2 branch. If anyone is interested feel free to play around. Will merge on the main branches when Xcode 9 leaves beta.

@JohnEstropia commented on GitHub (Jun 8, 2017): I have a workaround for Swift 3.2 on the `prototype/Swift_3_2` branch. If anyone is interested feel free to play around. Will merge on the main branches when Xcode 9 leaves beta.
Author
Owner

@Plnda commented on GitHub (Jun 8, 2017):

@JohnEstropia how do i reference this in cocoa pods :)

@Plnda commented on GitHub (Jun 8, 2017): @JohnEstropia how do i reference this in cocoa pods :)
Author
Owner

@JohnEstropia commented on GitHub (Jun 8, 2017):

Swift 3.2

Podfile

pod 'CoreStore', :git => 'https://github.com/JohnEstropia/CoreStore.git', :branch => 'prototype/Swift_3_2'

Cartfile

github "JohnEstropia/CoreStore" "prototype/Swift_3_2"
@JohnEstropia commented on GitHub (Jun 8, 2017): ## Swift 3.2 Podfile ```ruby pod 'CoreStore', :git => 'https://github.com/JohnEstropia/CoreStore.git', :branch => 'prototype/Swift_3_2' ``` Cartfile ```ruby github "JohnEstropia/CoreStore" "prototype/Swift_3_2" ```
Author
Owner

@JohnEstropia commented on GitHub (Jun 9, 2017):

Swift 4

Podfile

pod 'CoreStore', :git => 'https://github.com/JohnEstropia/CoreStore.git', :branch => 'prototype/Swift_4_0'

Cartfile

github "JohnEstropia/CoreStore" "prototype/Swift_4_0"
@JohnEstropia commented on GitHub (Jun 9, 2017): ## Swift 4 Podfile ```ruby pod 'CoreStore', :git => 'https://github.com/JohnEstropia/CoreStore.git', :branch => 'prototype/Swift_4_0' ``` Cartfile ```ruby github "JohnEstropia/CoreStore" "prototype/Swift_4_0" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#142