Closed EtharBuildBot closed 1 year ago
I was plagued by this error (EntryPointNotFoundException
) for a day and now after updating Unity to 2021.3.25f1 I can't reproduce it. What version are you using?
Closing as not able to be reproduced with current build.
OK, so it looks like conditions for this to be triggered include updating the native iOS plugin after doing at least one previous build. Clearing the Unity project Library
folder resolved the issue. So I would speculate that Unity is doing some caching of plugin symbols on iOS, and when the libARX.a file changes, it can't find the new symbol addresses using the old cache.
This turned out to be a bug that was triggered by some recent version of Unity changing how it handles calls to plugin functions when iOS is selected. Fixed by #76
When building in Unity for iOS an issue is raised (see below) however a build is still generated:
'''text EntryPointNotFoundException: arwRegisterLogCallback assembly: type: member:(null)
PluginFunctionsARX.arwRegisterLogCallback (PluginFunctionsLogCallback lcb) (at Assets/artoolkitX-Unity/Scripts/PluginFunctionsARX.cs:106)
ARController.OnEnable () (at Assets/artoolkitX-Unity/Scripts/ARController.cs:425)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)
'''
However, when trying to build using Xcode on Mac, the screen simply renders pink and no camera feed is displayed:
'''iOS log 2023-05-15 16:53:46.604864+0100 ARUnityX-Test[1175:347132] Built from '2021.3/staging' branch, Version '2021.3.24f1 (cf10dcf7010d)', Build type 'Release', Scripting Backend 'il2cpp' 2023-05-15 16:53:46.606003+0100 ARUnityX-Test[1175:347132] MemoryManager: Using 'Default' Allocator. [UnityMemory] Configuration Parameters - Can be set up in boot.config "memorysetup-bucket-allocator-granularity=16" "memorysetup-bucket-allocator-bucket-count=8" "memorysetup-bucket-allocator-block-size=4194304" "memorysetup-bucket-allocator-block-count=1" "memorysetup-main-allocator-block-size=16777216" "memorysetup-thread-allocator-block-size=16777216" "memorysetup-gfx-main-allocator-block-size=16777216" "memorysetup-gfx-thread-allocator-block-size=16777216" "memorysetup-cache-allocator-block-size=4194304" "memorysetup-typetree-allocator-block-size=2097152" "memorysetup-profiler-bucket-allocator-granularity=16" "memorysetup-profiler-bucket-allocator-bucket-count=8" "memorysetup-profiler-bucket-allocator-block-size=4194304" "memorysetup-profiler-bucket-allocator-block-count=1" "memorysetup-profiler-allocator-block-size=16777216" "memorysetup-profiler-editor-allocator-block-size=1048576" "memorysetup-temp-allocator-size-main=4194304" "memorysetup-job-temp-allocator-block-size=2097152" "memorysetup-job-temp-allocator-block-size-background=1048576" "memorysetup-job-temp-allocator-reduction-small-platforms=262144" "memorysetup-temp-allocator-size-background-worker=32768" "memorysetup-temp-allocator-size-job-worker=262144" "memorysetup-temp-allocator-size-preload-manager=262144" "memorysetup-temp-allocator-size-nav-mesh-worker=65536" "memorysetup-temp-allocator-size-audio-worker=65536" "memorysetup-temp-allocator-size-cloud-worker=32768" "memorysetup-temp-allocator-size-gfx=262144" -> applicationDidFinishLaunching() [Subsystems] Discovering subsystems at path /private/var/containers/Bundle/Application/E51E28F0-7AD3-4351-B52B-0FD87BE9E433/ARUnityX-Test.app/Data/UnitySubsystems GfxDevice: creating device client; threaded=1; jobified=0 Initializing Metal device caps: Apple A12Z GPU Initialize engine version: 2021.3.24f1 (cf10dcf7010d) -> applicationDidBecomeActive() 2023-05-15 16:53:47.773771+0100 ARUnityX-Test[1175:347132] Unbalanced calls to begin/end appearance transitions for <UnityDefaultViewController: 0x104c54090>. UnloadTime: 3.340292 ms ARController: ARController.Awake()) ARController:Awake()
ARController: ARController.OnEnable() ARController:OnEnable()
2023-05-15 16:53:51.835946+0100 ARUnityX-Test[1175:347132] [info] artoolkitX v1.1.7 initalised. ARController: artoolkitX version 1.1.7 initialised. ARController: ARController.Start(): Application.isPlaying = True autoStart: True ARController:Start()
ARController: Starting AR.