tensorflow / swift

Swift for TensorFlow
https://tensorflow.org/swift
Apache License 2.0
6.13k stars 608 forks source link

noob question, Xcode build OS version #425

Closed briantimar closed 4 years ago

briantimar commented 4 years ago

Hi! -

I'm using macOS 10.15, with the S4TF 04/17 toolchain. Having followed the prebuilt installation instructions I can compile code with swift from the command line, but in Xcode (11.4.1), at import TensorFlow I get a compiler error: "Compiling for macOS 10.10, but module 'TensorFlow' has a minimum deployment target of macOS 10.13".

Any idea why? Obviously that OS version is wrong, but I can't find anything in xcode settings to alter this.

dan-zheng commented 4 years ago

Check the "Deployment Target" for your Xcode target:

Screen Shot 2020-04-23 at 2 39 04 AM

Is it set to macOS 10.10? If so, you can try setting it to macOS 10.13 or newer.

briantimar commented 4 years ago

that's it, thank you! had incorrect xcode project structure