Errors With the latest version of Xcode and Swift 2.3 #82

Closed
opened 2025-12-29 15:23:51 +01:00 by adam · 7 comments
Owner

Originally created by @ghost on GitHub (Sep 14, 2016).

I have few errors with optionals when I'm trying to build the library with Xcode 8 and Swift 2.3.

I've updated CoreStore to version 2.0.6. I've changed CoreStore target flag 'Use Legacy Swift Language Version' to YES (same with NO). I've also added 'developer_info' and 'post_install' to my pod file as it's shown here. However errors are still there.

I ran out of ideas. Do I need swift 3 branch? Any suggestions?

Originally created by @ghost on GitHub (Sep 14, 2016). I have few errors with optionals when I'm trying to build the library with Xcode 8 and Swift 2.3. I've updated CoreStore to version 2.0.6. I've changed CoreStore target flag 'Use Legacy Swift Language Version' to YES (same with NO). I've also added 'developer_info' and 'post_install' to my pod file as it's shown [here](https://medium.com/@ziminalex/xcode-8-0-cocoapods-95d8e7a769a9#.h7qgulxm2). However errors are still there. I ran out of ideas. Do I need swift 3 branch? Any suggestions?
adam added the fixed label 2025-12-29 15:23:51 +01:00
adam closed this issue 2025-12-29 15:23:51 +01:00
Author
Owner

@jamesbebbington commented on GitHub (Sep 14, 2016):

@AleksandarPetrov it looks like there are some tweaks that need to be made to support Swift 2.3.

Hey @JohnEstropia, now that Xcode 8 GM has been released, is there any chance you could release a Swift 2.3 compatible version soon? CoreStore is now the only library that my app uses, that won't compile in Xcode 8. Many thanks.

@jamesbebbington commented on GitHub (Sep 14, 2016): @AleksandarPetrov it looks like there are some tweaks that need to be made to support Swift 2.3. Hey @JohnEstropia, now that Xcode 8 GM has been released, is there any chance you could release a Swift 2.3 compatible version soon? CoreStore is now the only library that my app uses, that won't compile in Xcode 8. Many thanks.
Author
Owner

@JohnEstropia commented on GitHub (Sep 15, 2016):

I apologize for this. I'll try to prepare a separate branch for Swift 2.3 support within the day.
I can't update the master branch directly yet because Xcode 8 breaks iOS 7 support (which CoreStore still supports)

@JohnEstropia commented on GitHub (Sep 15, 2016): I apologize for this. I'll try to prepare a separate branch for Swift 2.3 support within the day. I can't update the master branch directly yet because Xcode 8 breaks iOS 7 support (which CoreStore still supports)
Author
Owner

@jamesbebbington commented on GitHub (Sep 15, 2016):

Thanks @JohnEstropia, much appreciated.

@jamesbebbington commented on GitHub (Sep 15, 2016): Thanks @JohnEstropia, much appreciated.
Author
Owner

@JohnEstropia commented on GitHub (Sep 16, 2016):

Aaaand I just learned that Cocoapods still has Xcode 8 support in beta...

Apologies for everyone waiting for this update, but it looks like I need another day to satisfy Cocoapods and Travis (iOS 8 simulator unit tests seem(?) broken...).

@JohnEstropia commented on GitHub (Sep 16, 2016): Aaaand I just learned that [Cocoapods still has Xcode 8 support in beta](https://github.com/CocoaPods/CocoaPods/issues/5825)... Apologies for everyone waiting for this update, but it looks like I need another day to satisfy Cocoapods and Travis (iOS 8 simulator unit tests seem(?) broken...).
Author
Owner

@jamesbebbington commented on GitHub (Sep 16, 2016):

Thanks for the update @JohnEstropia, I hope Cocoapods doesn't cause you too much heartache.

Relatedly, I used this workaround to stop Xcode 8 complaining about the SWIFT_VERSION.

@jamesbebbington commented on GitHub (Sep 16, 2016): Thanks for the update @JohnEstropia, I hope Cocoapods doesn't cause you too much heartache. Relatedly, I used [this workaround](http://stackoverflow.com/questions/38446097/xcode-8-beta-3-use-legacy-swift-issue/38466703#38466703) to stop Xcode 8 complaining about the `SWIFT_VERSION`.
Author
Owner

@JohnEstropia commented on GitHub (Sep 17, 2016):

Swift 2.3/Xcode 8 support is now in the master branch, at version 2.1.0. You can install this through Cocoapods by using the Cocoapods RC build.

iOS 7 support is in a separate master_ios_7_to_9 (I know..) branch

@JohnEstropia commented on GitHub (Sep 17, 2016): Swift 2.3/Xcode 8 support is now in the `master` branch, at version 2.1.0. You can install this through Cocoapods by using the Cocoapods RC build. iOS 7 support is in a separate `master_ios_7_to_9` (I know..) branch
Author
Owner

@jamesbebbington commented on GitHub (Sep 19, 2016):

Perfect, thanks @JohnEstropia!

@jamesbebbington commented on GitHub (Sep 19, 2016): Perfect, thanks @JohnEstropia!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#82