TensorFlow-iOS-Example icon indicating copy to clipboard operation
TensorFlow-iOS-Example copied to clipboard

Integrating this in swift giving 'string' file not found error

Open suneelkumargavara opened this issue 7 years ago • 1 comments

I am using this framework in a swift project and used a bridging header to implement some functionalities. I was included this framework with CocoaPods into my swift project. But while trying to build the project, there are so many syntax errors like #include not found, #include not found etc. I have been banging my head around this issue from past two days but no luck. The Xcode compiler is able to build if i am using an Objective C Project. Somebody please guide me to resolve the issue with swift project

Thanks in Advance

suneelkumargavara avatar Sep 04 '18 11:09 suneelkumargavara

You cannot directly use C++ code from Swift. You need to wrap it in Obj-C or C code first.

hollance avatar Sep 04 '18 12:09 hollance