Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

No such module ‚TensorFlow‘ #48

Closed
saschaschramm opened this issue Jul 13, 2018 · 2 comments
Closed

No such module ‚TensorFlow‘ #48

saschaschramm opened this issue Jul 13, 2018 · 2 comments

Comments

@saschaschramm
Copy link

With Xode 10 (Beta 3) and toolchains
swift-tensorflow-DEVELOPMENT-2018-06-29-a-osx.pkg and
swift-tensorflow-DEVELOPMENT-2018-07-12-a-osx.pkg
I get an error when trying to import TensorFlow into a Command Line project:

No such module ‚TensorFlow‘

In playground and Swift REPL everything is working fine:

Welcome to Swift version 4.2-dev (LLVM eb00ef6046, Clang d9545f2833, Swift 3d37ae7c06). Type :help for assistance.
  1> import TensorFlow
  2>  

When using Xode 9.4.1 and toolchain swift-tensorflow-DEVELOPMENT-2018-06-25-a-osx.pkg an import of TensorFlow into a Command Line project is possible.

Environment:
macOS 10.13.6

@rxwei
Copy link
Contributor

rxwei commented Jul 13, 2018

Xcode 10 beta doesn't work very well with third-party toolchains. A workaround is the following:

  • Go to "File" - "Project Settings"
  • Set "Build System" to "Legacy Build System"
  • Click "Done".

@saschaschramm
Copy link
Author

Great, that works. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants