Update! I was able to get the project with the 3 errors to work. I had an old, unused and incomplete macro with nodes from the "DefaultTrackableEventHandler" script sitting in my macro folder. I'm 99% sure I wasn't using it still on any objects, but when I deleted the macro, and ran the pre-build again, I was able to build the project and use it on the iPad. A few things seem off, but some of the Bolt stuff is working for sure, I just need to check more in the morning.
I'm still not sure why the ones I started from scratch didn't work, but I'll try again tomorrow on that.
Two of the errors look like the one above, then the other one is this:
NullReferenceException: Object reference not set to an instance of an objectUnityEngine.GUILayout.FlexibleSpace () (at /Users/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:282)Ludiq.AotPreBuildPage.OnContentGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/AotPreBuildWindow/AotPreBuildPage.cs:64)Ludiq.Page.DrawContent () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:56)Ludiq.SinglePageWindow`1[TPage].OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/SinglePageWindow.cs:69)Ludiq.WrappedEditorWindow.OnGUI () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:41)System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)System.Reflection.MethodBase.Invoke (System.Object obj, System.Object parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:285)UnityEditor.HostView.Invoke (System.String methodName) (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:278)UnityEditor.HostView.OldOnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/HostView.cs:107)UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at /Users/builduser/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:127)
I'm really having trouble getting Vuforia and Bolt to work together. I can make things that work in Unity, but they don't work when I build to the iPad. Vuforia is now a part of Unity 2017.2.0f3, which I figured would make it easier.
The first thing I noticed is the Setup Wizard fails to generate documentation when I have Vuforia in a project. Not sure if this matters.
When I go to Generate Inspectors, Vuforia doesn't show up in the list by default, but it's available as "Vuforia.UnityExtensions" and "Vuforia.UnityExtensions.Editor". I've tried without adding either, adding just the first, and adding both. Doesn't seem to make a difference in the build.
I've also tried with and without doing the "AOT safe mode", and with and without doing the AOT Pre-Build. No matter what I do, I have things that work perfectly in Unity, but the Bolt elements simply don't work on the iPad build. Other elements work fine.
However, I'm trying another project from scratch right now that doesn't even have any Bolt elements added yet, only the package imported, inspectors generated, and the various AOT settings, and the action that works fine in Unity won't work on the iPad build.
I just can't figure out if it's something I'm not doing right, or if there's something incompatible between Bolt and Vuforia, which I need for all of the projects I'm working on.
The two projects above were made from scratch. The first time I tried to simply add bolt into a working Vuforia project, everything worked fine in Unity, but none of the bolt elements worked on the iPad. Then I read about the AOT steps, so I did those. That just gave me 3 errors in Unity, and I couldn't build the project. here's one of those errors:
Assets/Generated/Ludiq.Core/AotStubs.cs(1411,27): error CS1061: Type DefaultTrackableEventHandler' does not contain a definition forrunInEditMode' and no extension method runInEditMode' of typeDefaultTrackableEventHandler' could be found. Are you missing an assembly reference?
DefaultTrackableEventHandler' does not contain a definition for
runInEditMode' of type
"DefaultTrackableEvenHandler" is a script from Vuforia. I didn't get these errors and could build until I ran the AOT pre-build, but then again the Bolt features only worked in Unity and not the actual build...Thanks for any help you might be able to provide!
Customer support service by UserEcho