-
Notifications
You must be signed in to change notification settings - Fork 943
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
Swift compiler error #202
Comments
For fix this error, you can use swiftenv Or you can create .swift-version file with 3.0 |
Hi, thanks for responding. I am getting these errors with Swift version 3.0. Is there a particular snapshot I should be using? |
We will always note the proper snapshot to use on the main README: https://github.com/PerfectlySoft/Perfect/blob/master/README.md As of right this moment, we are on DEVELOPMENT-SNAPSHOT-2016-06-20-a Once the full 3.0 is released we will tag all of our components as 2.0.0. |
With a fresh clone of PerfectTemplate.git and my local swiftenv rehashed and set to DEVELOPMENT-SNAPSHOT-2016-06-20-a, I am still running into the compiler errors I posted above when running |
Did you:
The dist flag will have it delete all the downloaded packages and re-download the latest versions. This is often necessary when things are changing frequently as they are now. |
Thanks for the suggestion! Just tried it, but it didn't fix the compiler error. |
After update my Perfect package, I've the same error. |
@mtso and @CharlesHarroch can you clarify what OS you're using please? |
Can you also paste in the output of |
If you are OS X ensure you have done this step: |
I just verified on mine and it builds ok, the choosing of the command line tools version is the only thing that might be different. |
I use OS X 10.11.5
My error :
|
I am also using macOS 10.11.5. @kjessup yes, I made sure to set Xcode 8 in Locations > Command Line Tools. It doesn't show the LLVM part, though? If I package generate an Xcode project, those errors are caught by the checker. |
Good news... I've managed to reproduce the error. We'll be back to you soon :) |
Solved:
Then try build. |
Thank you so much for the help, I really appreciate it. Following the above steps, I'm able to properly compile with However, I get the same error when I try using the starter project In case the bit in the parens might help, my System Version: OS X 10.11.5 (15F34) |
Same for me |
Do as same as comment said:
and my system is |
@tomisacat try Xcode -> Preference -> DEVELOPMENT-SNAPSHOT-2016-06-20-a |
most of people follow the tutorial :
Solved:
Note:
Hope this could help you |
@colourful987 Thanks for helping. But What do you mean about btw, only these Swift versions installed in my system:
and as you see, the development snapshot is the current version for the project. |
It just worked strangely that I re-clean-and-build and I checked the last commit, it's early than the time I tried last time. Strange but amazing : ) |
@colourful987 I have been attempting to get my project working. I tried cloning the PerfectTemplate and running swift build.....And I got the same error as with my own project. I have the newest snapshot downloaded and have it selected however I still get the error. |
@FibonacciRedstone i presume you have followed the steps @colourful987 laid out?
|
@iamjono I don't have "swiftenv" installed however I have installed the 6-20 snapshot and my swift --version shows this. I also have steps 3-6 completed and I am still getting those errors |
I figured out what went wrong on my end. |
Hello Perfect team,
I tried following the README Quick Start instructions.
After I enter the following in Terminal:
git clone https://github.com/PerfectlySoft/PerfectTemplate.git
cd PerfectTemplate
swift build
I get:
/Users/matthewtso/git/PerfectTemplate/Packages/PerfectThread-0.10.0/Sources/ThreadQueue.swift:210:97: error: cannot convert value of type 'UnsafeMutablePointer<Void>' (aka 'UnsafeMutablePointer<()>') to expected argument type 'UnsafeMutablePointer<_>'
/Users/matthewtso/git/PerfectTemplate/Packages/PerfectThread-0.10.0/Sources/ThreadQueue.swift:233:37: error: value of type 'Unmanaged<IsThisRequired>' has no member 'toOpaque'
error: exit(1): /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/matthewtso/git/PerfectTemplate/.build/debug.yaml
Checking my Swift version returns the following:
Apple Swift version 3.0 (swiftlang-800.0.30 clang-800.0.24)
Target: x86_64-apple-macosx10.9
I'm pretty new and not sure how to diagnose this, is there something I can try to fix this?
Thanks!
The text was updated successfully, but these errors were encountered: