Import error. #37
Comments
Code completion not suggesting "TensorFlow" is a known bug. However, import should still work. In your case, could you try restarting Xcode? |
Which toolchain are you using? |
To be clear, does the following fail? export PATH=/Library/Developer/Toolchains/swift-latest/usr/bin:"${PATH}"
echo "import TensorFlow\nlet x = Tensor(1)" > test.swift
swift test.swift If it does fail, please share the error. |
No, that doesn't fail, but in Xcode still doesn't work.. |
@eldardamirov Can you give me the latest download link? I can not find . |
@rxwei "Download the latest package release" can not click. |
@zhuiyizhiqiu Please select a package from the "pre-built packages" section. In the future, please create a new issue if you have a specific question instead of commenting on an existing issue. |
@eldardamirov It's known that the latest 06-01 toolchain doesn't work with the new Xcode 10 beta. |
@dan-zheng Thanks. |
I verified that the 06-01 toolchain is problematic on Xcode 9.4. I'll try to fix this within a week. |
Sorry, I've been busy this week, so couldn't take part in discussion. Yes, Xcode 9.4 has never worked for me, same thing with Xcode 10, but it is only first beta, so it has many issues beside this one. Looking forward to fixes) |
Tried on 9.4 and 10.0 Can't get tensorflow to work |
I apologize, I didn't get around to fixing codesigning this week. A realistic ETA for working toolchains for Xcode 9.4/10 is 1.5-2 weeks from today. Thanks for your patience! |
Ok, thanks for your assistance. |
Closing, since issue is not reproducible. The latest 6/29 prebuilt toolchain supports Xcode 10: |
Reinstalled several times, but Xcode constantly gives import error. It is impossible to import "TensorFlow", but for some reason sometimes "CTensorFlow" is suggested by Xcode suggestions.
Also, in some cases playground just goes in infinite compilation, or works very very slow. What this could be caused by and how may I solve this problems?
Thanks in advance.
Xcode 9.4
macOS 10.13.5
The text was updated successfully, but these errors were encountered: