Open ghost opened 5 years ago
There is a small issue need to fix, we need to set Enable Testability to No.
As we use Xcode 10, the default project capability is "Xcode 9.3 compatible", and the "objectVersion = 50;" in pbxproj file. as you leave these new settings, you may encounter build error:
:-1: Undefined symbol: _mono_log_open_asl
:-1: Undefined symbol: _mono_log_write_asl
:-1: Undefined symbol: _mono_log_close_asl
If you compare with the same item of older project "LD xxx/Debug-iphoneos/Play.build/Objects-normal/arm64/Play normal arm64 (in target: Play)"
you will find an extra xlinker "-Xlinker -export_dynamic", which will make the building process failed. But if we change Enable Testability to No, that error will be fixed.
Hi. I want to make this tutorial of how I was able to run Unity 2018.3 + Vuforia 8 + Xcode 10. So, let's get started!
Configure
Unity Proyect: When you are ready to export your Unity+Vuforia proyect, continue with this configuration:
Swift Project: When your Unity-Xcode project finish, go back to your Swift application. We'll be following the same steps of the swift-unity tutorial...
At this moment, you must have this structure:
As I said before, I'll be using .Net 4.x so:
#include "Classes/Unity/UnitySharedDecls.h"
with:#include "../Classes/Unity/UnitySharedDecls.h"
return deviceUnknown;
between the lines 280-281 (after the #endif and } )Add other...
. Navigate back to the Unity-Xcode proyect and look for the Vuforia.framework inside the root folder Frameworks. When selected, set the options "Copy items if needed" and "Create folder references" checked.Now, your target settings must look as this:
If you followed this tutorial, now you'll be able to compile the swift project without errors. To display the Unity-Vuforia, just continue following the swift-unity tutorial... Update the AppDelegate.swift, set up your Controllers and/or Storyboards, set the camera policy in your info.plist... and that's it!
Thank you so much for taking your reading this tutorial. I hope to be able to help you :)