Post

Replies

Boosts

Views

Activity

Reply to I am trying to mix Swift and C++, and my C++ class has errors "expected ';' after top level declarator" and "unknown type name 'class'; did you mean 'Class'?"
The reply from aliwang is correct, and solved this problem for me right away. My Build Settings supported language was set to 'objective-c / objective-c++' and the framework project simply would not build. How on earth in 2024 Apple has not been able to make Xcode interop C/C++/Obj-C/Swift out of the box is beyond me. Since all of these languages are a superset of C. You know many of us want this, you guys use it yourself more and more. Just work it into Xcode and be done with it already.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’24
Reply to I am trying to mix Swift and C++, and my C++ class has errors "expected ';' after top level declarator" and "unknown type name 'class'; did you mean 'Class'?"
The reply from aliwang is correct, and solved this problem for me right away. My Build Settings supported language was set to 'objective-c / objective-c++' and the framework project simply would not build. How on earth in 2024 Apple has not been able to make Xcode interop C/C++/Obj-C/Swift out of the box is beyond me. Since all of these languages are a superset of C. You know many of us want this, you guys use it yourself more and more. Just work it into Xcode and be done with it already.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’24