"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Use Vuforia in Swift

Heey guys,

 

I was wodering if there is any way to get Vuforia working in Swift for IOS

If I use a Bridging header and the header files i get these errors:

http://puu.sh/bquqU/0bc91ed551.png

This is a image with my error screen.

I don't know how to fix these errors.

 

I hope some of you can help me out to get Vuforia working in IOS.

Oakleygolf

Tue, 10/07/2014 - 22:49

You are going to have to wrap the C++ code in Objective-C wrappers as swift is unable to use C++ code.  

Hi, it should be possible to create a Swift projct with Vuforia; however the Vuforia and OpenGL (EAGLView etc.) code must remain in Objective-C / C++ as they are in our samples;

[quote=AlessandroB]

Hi, it should be possible to create a Swift projct with Vuforia; however the Vuforia and OpenGL (EAGLView etc.) code must remain in Objective-C / C++ as they are in our samples;

[quote=Xpento]

[quote=AlessandroB]

Hi, it should be possible to create a Swift projct with Vuforia; however the Vuforia and OpenGL (EAGLView etc.) code must remain in Objective-C / C++ as they are in our samples;