Basic c++ main xcodeproj call to swift struct

I can't find any simple c++ xcodeproj call to swift struct using modern c++ swift mix. there is the fibonacci example that is swift app call to c++. Base on fibonacci example I create new simple project and fail to build it with error when I try to include #include <SwiftMixTester/SwiftMixTester-Swift.h>

What is wrong? Is it the right place to ask this? Any work project link?

Xcode 26.

Answered by DTS Engineer in 864228022

I pasted a concrete example of calling Swift from C++ in your other thread. Admittedly, this was calling a class not a struct, but it seems like a reasonable place to start.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I pasted a concrete example of calling Swift from C++ in your other thread. Admittedly, this was calling a class not a struct, but it seems like a reasonable place to start.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Basic c&#43;&#43; main xcodeproj call to swift struct
 
 
Q