我正在尝试在Unity中构建64位APK。我启用了ARM 64,并使用IL2CPP作为脚本后端。
某些控制台日志:
C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:538: error: undefined reference to 'init' C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:566: error: undefined reference to 'logout' C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:566: error: undefined reference to 'logout' C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:576: error: undefined reference to 'activateApp' C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:576: error: undefined reference to 'activateApp' C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:600: error: undefined reference to 'logPurchase' C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:630: error: undefined reference to 'ui' C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:652: error: undefined reference to 'initScreenPosition' C:\Users\JD\Documents\GitHub\win-time\win-time\Temp\StagingArea\Il2Cpp\il2cppOutput/Bulk_Facebook.Unity.Canvas_0.cpp:652: error: undefined reference to 'initScreenPosition' clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
我的猜测是,\ FacebookSDK \ Plugins \ Canvas \ CanvasJSSDKBindings.jslib引起了错误。但是我不知道如何解决它。我直接从Unity Facebook SDK导入了此SDK。