-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
XCode 9.0 Beta : Compile Error #664
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
Comments
Fully acknowledge that I have no idea what I am doing. But given that it is complaining about files not found I figured it would be worth starting there. So looking in the app bundles for Xcode 8.3.3 vs Xcode 9.0.0 I found this: Xcode Version 8.3.3 (8E3004b)
Xcode Version 9.0 beta (9M136h)
The thing that seems to be different is the fact that it is not included in This could be a red herring but I thought I'd point it out. |
I don't know if it's merely a fun fact, but the Xcode 9.0 beta 1 release notes state :
If only had a brief look, but it seems to be a very "raw" import, meaning all functions are prefixed with |
Nice catch, @thebluepotato. Replacing all lines |
that is very fascinating. |
I haven't got that map error. Maybe that comes from trying to use Swift 4? I'm using Xcode 9 but I'm letting SQLite.swift continue using Swift 3.2. The compiler can mix and match targets with different Swift versions now so there is no need to convert SQLite.swift to Swift 4 prematurely. It won't keep you from using Swift 4 in your main project. |
For anyone using CocoaPods, here is a snippet to add to your
|
@rygood Thanks for the snippet, pod files seems to be readonly. getting multiple errors like the following.
|
Yep, files in the "Pods" project are locked. Maybe this can be circumvented by script?
|
Snippet wont edit locked file. I'm using a fork for now.
|
My work around for the locked files is nuking the |
@thebluepotato would you mind setting up a PR for this (swift4 branch)? Unfortunately I don't have much time to maintain SQLite.swift at the moment. |
I've set up the necessary updates (and fixed the map issue), I just need someone to create a NB : about the map issue, I think Swift 4 is stricter between single-tuple and multiple arguments, meaning that if you map a collection of tuples, the argument is the tuple, not the tuples sub-components (will be clearer once you see the code). |
@thebluepotato branch created |
there's now a swift-4 branch available |
Thank you @rygood First I removed SQLite from my podfile, so I could uninstall it.
Then Then I put SQLite back and also put the code you made for us.
Then |
With Xcode 9GM I no longer have any errors or warnings compiling this. I'm using version 0.11.3, so maybe it was just an issue with the beta Xcode only? |
There will be 0.11.4 soon, with the swift4 changes (#725). |
On an unrelated project, I saw these errors merely because my Xcode 9 (release, not beta) wasn't located at exactly |
@aleczadikian this should no longer by an issue (with the release branch and upcoming 0.11.4) |
Closed with 0.11.4 |
After updating to XCode 9 Beta, the following Compiler Error occurred (SQlite.swift 0.11.2). How can I solve it?

The text was updated successfully, but these errors were encountered: