WebGL build failing with il2cpp.exe error

The first error is pretty long, so I’ll leave just the snippet unless more info is needed. This is a unity 5.4.0f3 game that we are trying to upgrade to 5.5 to gain the benefit of the new webGl enhancements. however, when trying to build I get the following two errors. Currently trying the 5.5.0f2 release to get this done.

Failed running C:\Programs\Unity5.5f2\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --compile-cpp --libil2cpp-static --platform=“WebGL” --architecture=“EmscriptenJavaScript” --configuration=“Release”

Exception: C:\Programs\Unity5.5f2\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List1 arguments, System.Action1 setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:281) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:272)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:126)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:39)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:560)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
UnityEditor.HostView:OnGUI()

The part you pasted it useless :(. Can you paste the whole error?

Error 1

Failed running C:\Programs\Unity5.5.0f2\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --compile-cpp --libil2cpp-static --platform=“WebGL” --architecture=“EmscriptenJavaScript” --configuration=“Release” --outputpath=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj- V2-Test\Assets /…/Temp/StagingArea/Data\Native\build.js” --cachedirectory=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj- V2-Test\Assets..\Library/il2cpp_cache” --compiler-flags=“-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --linker-flags=”-s PRECISE_F32=2 -s DISABLE_EXCEPTION_CATCHING=0 --memory-init-file 1 -O3 -s NO_EXIT_RUNTIME=1 -g0 -s USE_WEBGL2=1 -s TOTAL_MEMORY=536870912 --separate-asm --emit-symbol-map --output_eol linux -s MEMFS_APPEND_TO_TYPED_ARRAYS=1 " --js-pre=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\FileSystem.js” --js-pre=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\MediaDevices.js” --js-pre=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\SendMessage.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Audio.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Cursor.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Eval.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\FileSystem.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\library_memfs.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Logging.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\SystemInfo.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\UnetWebSocket.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\WebCam.js” --js-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\WebRequest.js” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CloudWebServicesModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticlesLegacyModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAdsModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc” --additional-libraries=“C:\Programs\Unity5.5.0f2\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebModule_Dynamic.bc” --additional-libraries=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj- V2-Test\Assets\FacebookSDK\Plugins\iOS\Bolts.framework” --additional-libraries=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Assets\FacebookSDK\Plugins\iOS\FBSDKShareKit.framework” --additional-libraries=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Assets\FacebookSDK\Plugins\iOS\FBSDKLoginKit.framework” --additional-libraries=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Assets\FacebookSDK\Plugins\iOS\FBSDKCoreKit.framework” --additional-libraries=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Assets\Plugins\Android\OneSignalConfig” --extra-types.file=“C:\Programs\Unity5.5.0f2\Editor\Data\il2cpp\il2cpp_default_extra_types.txt” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\Facebook.Unity.dll” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\UnityEngine.dll” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\Mono.Security.dll” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\mscorlib.dll” --assembly=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Managed\System.dll” --generatedcppdir=“C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\il2cppOutput”

stdout:
Building build.js with EmscriptenToolChain.
Output directory: C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Temp\StagingArea\Data\Native
Cache directory: C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Library\il2cpp_cache
ObjectFiles: 482 of which compiled: 482
Time Compile: 22036 milliseconds Bulk_Assembly-CSharp_1.cpp
Time Compile: 21853 milliseconds Bulk_Generics_11.cpp
Time Compile: 21002 milliseconds Bulk_Generics_4.cpp
Time Compile: 20716 milliseconds GenericMethods0.cpp
Time Compile: 20700 milliseconds GenericMethods1.cpp
Time Compile: 18158 milliseconds Bulk_Assembly-CSharp_4.cpp
Time Compile: 17969 milliseconds Il2CppAttributes.cpp
Time Compile: 17245 milliseconds Bulk_mscorlib_1.cpp
Time Compile: 15950 milliseconds Bulk_mscorlib_6.cpp
Time Compile: 14037 milliseconds Il2CppMethodPointerTable.cpp
Total compilation time: 109135 milliseconds.
Response file: C:\Users\owner\AppData\Local\Temp_1252462149\response.rsp
il2cpp.exe didn’t catch exception: System.UnauthorizedAccessException: Access to the path ‘C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Assets\FacebookSDK\Plugins\iOS\Bolts.framework’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Unity.IL2CPP.Building.Hashing.HashTools.HashOfFile(NPath path)
at Unity.IL2CPP.Building.CppProgramBuilder.HashLinkerInvocation(LinkerInvocation linkerInvocation, IEnumerable1 objectFiles) at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable1 objectFiles, CppToolChainContext toolChainContext)
at Unity.IL2CPP.Building.CppProgramBuilder.Build()
at il2cpp.Program.DoRun(String[ ] args)
at il2cpp.Program.Run(String[ ] args)
at il2cpp.Program.Main(String[ ] args)
stderr:

Unhandled Exception: System.UnauthorizedAccessException: Access to the path ‘C:\Users\owner\Desktop\UnityExperiments\dbj-v2\dbj - V2-Test\Assets\FacebookSDK\Plugins\iOS\Bolts.framework’ is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Unity.IL2CPP.Building.Hashing.HashTools.HashOfFile(NPath path)
at Unity.IL2CPP.Building.CppProgramBuilder.HashLinkerInvocation(LinkerInvocation linkerInvocation, IEnumerable1 objectFiles) at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable1 objectFiles, CppToolChainContext toolChainContext)
at Unity.IL2CPP.Building.CppProgramBuilder.Build()
at il2cpp.Program.DoRun(String[ ] args)
at il2cpp.Program.Run(String[ ] args)
at il2cpp.Program.Main(String[ ] args)

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96) UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List1, Action1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:281) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection1, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:272)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:126)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:39)
UnityEditor.HostView:OnGUI()

Error 2

Exception: C:\Programs\Unity5.5.0f2\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List1 arguments, System.Action1 setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:281) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:272)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:126)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:39)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:560)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
UnityEditor.HostView:OnGUI()

To add, the first build was done at my home computer. This second was done at work. So it appears to happen on multiple computers. At work, I actually got the windows popup that said il2cpp has stopped working, this didn’t happen at home, but unity reported the same two errors. Work uses windows 7, home is windows 10 (if that helps any)

This is caused by the Facebook SDK folders in FacebookSDK/Plugins/iOS tagged as “Any Platform”.
In the Inspector, try to tag them only for iOS. That should fix it.

Thank you. That did it. I ran into the same issue with One signal, so I had to do the same for it, but at least I understood the error better. It’s building out correctly now.

Forgot to mention that we are also working on a fix that will ignore improperly tagged libraries.

Thank you. The build seems to work, however, once uploaded to Facebook and run, there is a part where we switch scenes to load up the game and in Firefox and Chrome, this is throwing some errors. A popup shows the following error.

Popup Error

An error occurred running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
uncaught exception: abort(146) at jsStackTrace (webglTestBuild.js:1:19540)
stackTrace (webglTestBuild.js:1:19711)
abort (webglTestBuild.js:3:33081)
Dvu (webglTestBuild.asm.js:31:1)
OCh (webglTestBuild.asm.js:4:1)
Nyk (webglTestBuild.asm.js:17:1)
Pyk (webglTestBuild.asm.js:17:1)
Myk (webglTestBuild.asm.js:17:1)
mLn (webglTestBuild.asm.js:16:1)
wnu (webglTestBuild.asm.js:31:1)
invoke_vii (webglTestBuild.js:1:341824)
yNn (webglTestBuild.asm.js:16:1)
NJm (webglTestBuild.asm.js:6:1)
Lou (webglTestBuild.asm.js:31:1)
invoke_iiii (webglTestBuild.js:1:355173)
Lut (webglTestBuild.asm.js:23:1)
Lyt (webglTestBuild.asm.js:23:1)
n3 (webglTestBuild.asm.js:8:1)
m3 (webglTestBuild.asm.js:8:1)
KOb (webglTestBuild.asm.js:10:1)
xOb (webglTestBuild.asm.js:10:1)
Uec (webglTestBuild.asm.js:19:1)
Tec (webglTestBuild.asm.js:19:1)
gPa (webglTestBuild.asm.js:14:1)
zca (webglTestBuild.asm.js:8:1)
mca (webglTestBuild.asm.js:8:1)
lou (webglTestBuild.asm.js:31:1)
dynCall [Runtime.dynCall] (webglTestBuild.js:1:7469)
_emscripten_set_main_loop [_emscripten_set_main_loop/browserIterationFunc] (webglTestBuild.js:1:38956)
runIter [Browser.mainLoop.runIter] (webglTestBuild.js:1:42048)
Browser_mainLoop_runner (webglTestBuild.js:1:40493)

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

The web console shows this repeating several times

Web Console error

Decompressing this format (1) is not supported on this platform.
(Filename: Line: 51)

NullReferenceException

(Filename: currently not available on il2cpp Line: -1)

getUserFBID
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

NullReferenceException

Note I’m trying to load an asset bundle that was created in 5.4. While things work in the 5.5 editor, could this be creating an issue once built out?

well…when upgrading to a new version of Unity, first thing to do is to rebuilt asset bundles. Most likely, they were created using LZMA compression which is not supported anymore in WebGL as of 5.5

hmm…The problem is the game is live. If I did 5.5 bundles, would they work in 5.4? All the bundles were built in 5.4.0f3 originally. They were built using the asset bundle manager asset that Unity has on the store. (It was released back in Sep 2015 I think and hasn’t been updated any).

Update: Tested with assetbundles built in 5.5 and still got the same errors.

That’s strange,. Did you build them with ChunkBasedCompression/no-compression ?

I am having the same issue. I filled a bug report, and the case number is 856484. The same issue is seen in 5.5.0f2.

I am using this
https://www.assetstore.unity3d.com/en/#!/content/45836

It adds an option under the assets menu that is Assetbundles → build assetbundles.
Basically whatever build target I’m under, it creates the assetbundle for me. It’s an older asset that hasn’t had any updates, but it’s provided by unity and has worked fine up to at least 5.4.0f2 (which is what we currently use).

I honestly don’t know what it does since I have not had a reason to look into the editor script as it’s always worked great for our project.

I see a buildScript in the editor folder, but didn’t see anything about compression in there.

It works for me in 5.5 with the default asset bundle settings.

Which scene are you loading?
Could you please attach the browser console log?

We’re loading our game scene. I’m not using the scenes in that asset, if that is what you mean. We use that asset to bundle the assets and then we use the manager script and one of the loader scripts(modified for our use) to load in several images.

All assetbundles are on a cdn and currently no issues in 5.4.0f3.

chrome console

.d8888b. 888 888
d88P Y88b 888 888
Y88b. 888 888 This is a browser feature intended for
"Y888b. 888888 .d88b. 88888b. 888 developers. If someone told you to copy-paste
"Y88b. 888 d88""88b 888 "88b 888 something here to enable a Facebook feature
"888 888 888 888 888 888 Y8P or “hack” someone’s account, it is a
Y88b d88P Y88b. Y88…88P 888 d88P scam and will give them access to your
“Y8888P” “Y888 “Y88P” 88888P” 888 Facebook account.
888
888
888

See Redirecting... for more information.
" z2G2nq66Pua.js:28:1504
The character encoding of a framed document was not declared. The document may appear different if viewed without the document framing it. xti.php
Quota ‘ftp’ is not a valid schema!: ActorsParent.cpp:6758 (unknown)
Quota Origin ‘ftp+++fourstorycreative.com’ failed to parse, handled tokens: : ActorsParent.cpp:6677 (unknown)
IndexedDB UnknownErr: ActorsParent.cpp:585 (unknown)
Quota ‘ftp’ is not a valid schema!: ActorsParent.cpp:6758 (unknown)
Quota Origin ‘ftp+++fourstorycreative.com’ failed to parse, handled tokens: : ActorsParent.cpp:6677 (unknown)
Quota ‘ftp’ is not a valid schema!: ActorsParent.cpp:6758 (unknown)
Quota Origin ‘ftp+++fourstorycreative.com’ failed to parse, handled tokens: : ActorsParent.cpp:6677 (unknown)
Successfully compiled asm.js code (total compilation time 3797ms; storage initialization failed (consider filing a bug)) 45edfc78-849c-4532-a633-d47ddc8bae10
IndexedDB is not available. Data will not persist in cache and PlayerPrefs will not be saved. 2f9e5a4a-0002-41f1-9256-78c6168258c8:1:124
Initialize engine version: 5.5.0f2 (1c3fa4a7f523)
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Creating WebGL 1.0 context. UnityLoader.js:2:572
Renderer: Mozilla
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Vendor: Mozilla
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Version: OpenGL ES 2.0 (WebGL 1.0)
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
GLES: 2
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
ANGLE_instanced_arrays GL_ANGLE_instanced_arrays EXT_blend_minmax GL_EXT_blend_minmax EXT_color_buffer_half_float GL_EXT_color_buffer_half_float EXT_frag_depth GL_EXT_frag_depth EXT_shader_texture_lod GL_EXT_shader_texture_lod EXT_texture_filter_anisotropic GL_EXT_texture_filter_anisotropic OES_element_index_uint GL_OES_element_index_uint OES_standard_derivatives GL_OES_standard_derivatives OES_texture_float GL_OES_texture_float OES_texture_float_linear GL_OES_texture_float_linear OES_texture_half_float GL_OES_texture_half_float OES_texture_half_float_linear GL_OES_texture_half_float_linear OES_vertex_array_object GL_OES_vertex_array_object WEBGL_color_buffer_float GL_WEBGL_color_buffer_float WEBGL_compressed_texture_etc1 GL_WEBGL_compressed_texture_etc1 WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc WEBGL_depth_texture GL_WEBGL_depth_texture WEBGL_draw_buffers GL_WEBGL_draw_buffers WEBGL_lose_context GL_WEBGL_lose_context MOZ_WEBGL_lose_context GL_MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
texture_s3tc GL_MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture GL_MOZ_WEBGL_depth_texture
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
OPENGL LOG: Creating OpenGL ES 2.0 graphics device ; Context level <OpenGL ES 2.0> ; Context handle 1
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
OnLevelWasLoaded was found on Reporter
This message has been deprecated and will be removed in a later version of Unity.
Add a delegate to SceneManager.sceneLoaded instead to get notifications after scene loading has completed
(Filename: Line: 382)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197770
UnloadTime: 0.855000 ms
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Version Oct - Payment Test2
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Using Facebook Unity SDK v7.8.0 with FBJSSDK/v2.6 FBUnityWebGL/7.8.0
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
UnloadTime: 2.460000 ms
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809

Unloading 12 unused Assets to reduce memory usage. Loaded Objects now: 9245.
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Total: 10.000000 ms (FindLiveObjects: 0.695000 ms CreateObjectMapping: 0.130000 ms MarkObjects: 9.020000 ms DeleteObjects: 0.145000 ms)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
BestFit is only supported for dynamic fonts. Font ‘BlueWave’ is not dynamic.
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197770
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: currently not available on il2cpp Line: -1)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
NullReferenceException

(Filename: currently not available on il2cpp Line: -1)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
NullReferenceException

(Filename: currently not available on il2cpp Line: -1)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
NullReferenceException

(Filename: currently not available on il2cpp Line: -1)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://perf-events.cloud.unity3d.com/api/events/crashes/dc122b7c-f762-4984-8de7-97f19526b4d8. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). (unknown)
NullReferenceException

(Filename: currently not available on il2cpp Line: -1)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
NullReferenceException

(Filename: currently not available on il2cpp Line: -1)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
populateWithScores 1
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/WebGL/runtime/DebugBindings.gen.cpp Line: 51)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
NullReferenceException

(Filename: currently not available on il2cpp Line: -1)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
UnloadTime: 15.710000 ms
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809

Unloading 449 unused Assets to reduce memory usage. Loaded Objects now: 2625.
2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
Total: 5.670000 ms (FindLiveObjects: 0.185000 ms CreateObjectMapping: 0.075000 ms MarkObjects: 4.555000 ms DeleteObjects: 0.855000 ms)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
NullReferenceException

(Filename: currently not available on il2cpp Line: -1)

2f9e5a4a-0002-41f1-9256-78c6168258c8:1:197809
146 UnityLoader.js:2:572
146 UnityLoader.js:2:619
Invoking error handler due to
uncaught exception: abort(146) at jsStackTrace (webglTestBuild.js:1:19540)
stackTrace (webglTestBuild.js:1:19711)
abort (webglTestBuild.js:3:33081)
Dvu (webglTestBuild.asm.js:31:1)
OCh (webglTestBuild.asm.js:4:1)
Nyk (webglTestBuild.asm.js:17:1)
Pyk (webglTestBuild.asm.js:17:1)
Myk (webglTestBuild.asm.js:17:1)
mLn (webglTestBuild.asm.js:16:1)
wnu (webglTestBuild.asm.js:31:1)
invoke_vii (webglTestBuild.js:1:341824)
yNn (webglTestBuild.asm.js:16:1)
NJm (webglTestBuild.asm.js:6:1)
Lou (webglTestBuild.asm.js:31:1)
invoke_iiii (webglTestBuild.js:1:355173)
Lut (webglTestBuild.asm.js:23:1)
Lyt (webglTestBuild.asm.js:23:1)
n3 (webglTestBuild.asm.js:8:1)
m3 (webglTestBuild.asm.js:8:1)
KOb (webglTestBuild.asm.js:10:1)
xOb (webglTestBuild.asm.js:10:1)
Uec (webglTestBuild.asm.js:19:1)
Tec (webglTestBuild.asm.js:19:1)
gPa (webglTestBuild.asm.js:14:1)
zca (webglTestBuild.asm.js:8:1)
mca (webglTestBuild.asm.js:8:1)
lou (webglTestBuild.asm.js:31:1)
dynCall [Runtime.dynCall] (webglTestBuild.js:1:7469)
_emscripten_set_main_loop [_emscripten_set_main_loop/browserIterationFunc] (webglTestBuild.js:1:38956)
runIter [Browser.mainLoop.runIter] (webglTestBuild.js:1:42048)
Browser_mainLoop_runner (webglTestBuild.js:1:40493)

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information. UnityLoader.js:1:5323
uncaught exception: abort(146) at jsStackTrace@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:1:19540
stackTrace@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:1:19711
abort@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:3:33081
Dvu@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:31:1
OCh@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:4:1
Nyk@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:17:1
Pyk@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:17:1
Myk@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:17:1
mLn@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:16:1
wnu@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:31:1
invoke_vii@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:1:341824
yNn@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:16:1
NJm@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:6:1
Lou@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:31:1
invoke_iiii@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:1:355173
Lut@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:23:1
Lyt@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:23:1
n3@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:8:1
m3@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:8:1
KOb@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:10:1
xOb@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:10:1
Uec@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:19:1
Tec@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:19:1
gPa@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:14:1
zca@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:8:1
mca@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:8:1
lou@blob:https://apps-372688999577304.apps.fbsbx.com/45edfc78-849c-4532-a633-d47ddc8bae10:31:1
Runtime.dynCall@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:1:7469
_emscripten_set_main_loop/browserIterationFunc@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:1:38956
Browser.mainLoop.runIter@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:1:42048
Browser_mainLoop_runner@blob:https://apps-372688999577304.apps.fbsbx.com/2f9e5a4a-0002-41f1-9256-78c6168258c8:1:40493

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information. (unknown)
Quota ‘ftp’ is not a valid schema!: ActorsParent.cpp:6758 (unknown)
Quota Origin ‘ftp+++fourstorycreative.com’ failed to parse, handled tokens: : ActorsParent.cpp:6677 (unknown)
IndexedDB UnknownErr: ActorsParent.cpp:585 (unknown)
UnknownError indexed-db.js:59:9
undefined Promise-backend.js:940
UnknownError indexed-db.js:59:9
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.facebook.com/common/invalid_request.php?__req=b. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). (unknown)
no element found request:1:1

The null reference errors seem to happen when I try to load the smaller images for the main scene. Then when we click to play a level into the game scene, I get the popup and it crashes there. I get mixed results usually. I’ll try to do another test build with 5.5.0f3 once I get that installed to see if it works any better.

Could you try with a Development build?

There is an error about cross-origin access. Have you setup your CDN for CORS?

The cross origin error always occurs and has never been an issue. It happens in 5.4 also and our asset bundles are fine.

I’ll do a development build and try to get that info up here.

Things got busy and I was able to do a development build, but it didn’t show anything new. However, we implemented a new assetbundle loader in our android build and transferred that to our webgl build and it seemed to work. The new system used the unitywebrequest instead of the www call and no longer had any issues. Was able to release the new webgl build and seems to be working currently.

Thanks for the help. I’m now having to get the Facebook gameroom build to work due to it crashing after install, but I think that may be a facebook issue.

I am getting the same error as that of first post

I did changed the settings that you Mentioned, but still getting the error

Error similar to first post

Failed running /Applications/Unity/Unity.app/Contents/il2cpp/build/il2cpp.exe --convert-to-cpp --compile-cpp --libil2cpp-static --platform=“WebGL” --architecture=“EmscriptenJavaScript” --configuration=“Release” --outputpath=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets /…/Temp/StagingArea/Data/Native/build.js” --cachedirectory=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets/…/Library/il2cpp_cache” --compiler-flags=“-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --linker-flags=”-s PRECISE_F32=2 -s DISABLE_EXCEPTION_CATCHING=1 --memory-init-file 1 -O3 -s NO_EXIT_RUNTIME=1 -g0 -s USE_WEBGL2=1 -s TOTAL_MEMORY=268435456 --separate-asm --emit-symbol-map --output_eol linux -s MEMFS_APPEND_TO_TYPED_ARRAYS=1 " --js-pre=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/prejs/FileSystem.js” --js-pre=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/prejs/MediaDevices.js” --js-pre=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/prejs/SendMessage.js” --js-pre=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/ExceptionLogger.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/Audio.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/Cursor.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/Eval.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/FileSystem.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/Logging.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/SystemInfo.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/UnetWebSocket.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/WebCam.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/WebRequest.js” --js-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/library_memfs.js” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AIModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AnimationModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_AudioModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ClothModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CloudWebServicesModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CoreModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_CrashReportingModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_IMGUIModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_JSONSerializeModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ParticleSystemModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_ParticlesLegacyModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_Physics2DModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_PhysicsModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TerrainPhysicsModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_TextRenderingModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UIModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UNETModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UmbraModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityAdsModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityAnalyticsModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityConnectModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_UnityWebRequestModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VRModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VehiclesModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_VideoModule_Dynamic.bc” --additional-libraries=“/Applications/Unity/PlaybackEngines/WebGLSupport/BuildTools/lib/modules/WebGLSupport_WebModule_Dynamic.bc” --additional-libraries=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets/FacebookSDK/Plugins/iOS/Bolts.framework” --additional-libraries=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets/FacebookSDK/Plugins/iOS/FBSDKLoginKit.framework” --additional-libraries=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets/FacebookSDK/Plugins/iOS/FBSDKCoreKit.framework” --additional-libraries=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets/FacebookSDK/Plugins/iOS/FBSDKShareKit.framework” --extra-types.file=“/Applications/Unity/Unity.app/Contents/il2cpp/il2cpp_default_extra_types.txt” --assembly=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll” --assembly=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll” --assembly=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Temp/StagingArea/Data/Managed/Facebook.Unity.dll” --assembly=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Temp/StagingArea/Data/Managed/UnityEngine.dll” --generatedcppdir=“/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Temp/StagingArea/Data/il2cppOutput”

stdout:
Building build.js with EmscriptenToolChain.
Output directory: /Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Temp/StagingArea/Data/Native
Cache directory: /Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Library/il2cpp_cache
ObjectFiles: 446 of which compiled: 0
Total compilation time: 4726 milliseconds.
Response file: /var/folders/5r/t5cx4f316ln2jl66knyh6pfr0000gn/T/_1380442791/response.rsp
il2cpp.exe didn’t catch exception: System.UnauthorizedAccessException: Access to the path ‘/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets/FacebookSDK/Plugins/iOS/Bolts.framework’ is denied.
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x108b528a0 + 0x006a8> in :0
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share) <0x108b52830 + 0x00053> in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) <0x108b525e0 + 0x0004a> in :0
at Unity.IL2CPP.Building.Hashing.HashTools.HashOfFile (NiceIO.NPath path) <0x10f8973c0 + 0x00048> in :0
at Unity.IL2CPP.Building.CppProgramBuilder.HashLinkerInvocation (Unity.IL2CPP.Building.LinkerInvocation linkerInvocation, IEnumerable1 objectFiles) <0x10fb872d0 + 0x00422> in <filename unknown>:0 at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (IEnumerable1 objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) <0x10fb83dc0 + 0x0012f> in :0
at Unity.IL2CPP.Building.CppProgramBuilder.Build () <0x10f8904d0 + 0x0080c> in :0
at il2cpp.Program.DoRun (System.String[ ] args) <0x108b5e6a0 + 0x011fa> in :0
at il2cpp.Program.Run (System.String[ ] args) <0x10890f0d0 + 0x0007b> in :0
at il2cpp.Program.Main (System.String[ ] args) <0x10890ee40 + 0x0002c> in :0
stderr:

Unhandled Exception:
System.UnauthorizedAccessException: Access to the path ‘/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets/FacebookSDK/Plugins/iOS/Bolts.framework’ is denied.
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x108b528a0 + 0x006a8> in :0
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share) <0x108b52830 + 0x00053> in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) <0x108b525e0 + 0x0004a> in :0
at Unity.IL2CPP.Building.Hashing.HashTools.HashOfFile (NiceIO.NPath path) <0x10f8973c0 + 0x00048> in :0
at Unity.IL2CPP.Building.CppProgramBuilder.HashLinkerInvocation (Unity.IL2CPP.Building.LinkerInvocation linkerInvocation, IEnumerable1 objectFiles) <0x10fb872d0 + 0x00422> in <filename unknown>:0 at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (IEnumerable1 objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) <0x10fb83dc0 + 0x0012f> in :0
at Unity.IL2CPP.Building.CppProgramBuilder.Build () <0x10f8904d0 + 0x0080c> in :0
at il2cpp.Program.DoRun (System.String[ ] args) <0x108b5e6a0 + 0x011fa> in :0
at il2cpp.Program.Run (System.String[ ] args) <0x10890f0d0 + 0x0007b> in :0
at il2cpp.Program.Main (System.String[ ] args) <0x10890ee40 + 0x0002c> in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path ‘/Users/amitrane/Documents/AmitRane/Work/Games/TVS Zest Drive Android copy/Assets/FacebookSDK/Plugins/iOS/Bolts.framework’ is denied.
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x108b528a0 + 0x006a8> in :0
at System.IO.FileStream…ctor (System.String path, FileMode mode, FileAccess access, FileShare share) <0x108b52830 + 0x00053> in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) <0x108b525e0 + 0x0004a> in :0
at Unity.IL2CPP.Building.Hashing.HashTools.HashOfFile (NiceIO.NPath path) <0x10f8973c0 + 0x00048> in :0
at Unity.IL2CPP.Building.CppProgramBuilder.HashLinkerInvocation (Unity.IL2CPP.Building.LinkerInvocation linkerInvocation, IEnumerable1 objectFiles) <0x10fb872d0 + 0x00422> in <filename unknown>:0 at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (IEnumerable1 objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) <0x10fb83dc0 + 0x0012f> in :0
at Unity.IL2CPP.Building.CppProgramBuilder.Build () <0x10f8904d0 + 0x0080c> in :0
at il2cpp.Program.DoRun (System.String[ ] args) <0x108b5e6a0 + 0x011fa> in :0
at il2cpp.Program.Run (System.String[ ] args) <0x10890f0d0 + 0x0007b> in :0
at il2cpp.Program.Main (System.String[ ] args) <0x10890ee40 + 0x0002c> in :0

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96) UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List1, Action1, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:281) UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(ICollection1, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:272)
UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:126)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:39)
UnityEditor.HostView:OnGUI()

@amitranegames It’s a good idea to put walls of text like that in a spoiler tag.

Your error looks the same. Make sure you have covered each thing that is listed as all platforms and switch it to the proper build target(mine seemed to be iOS ones only having issues). Then save and restart as I think it still has stuff loaded, so you’ll need to clear those out.

Since it still points to Facebook right now, I’m assuming your Facebook ones didn’t take or you missed a couple.

Hey thanks @Brathnann , I checked for all the things inside iOS folder and replaced everything that had all platforms to only for iOS and I was able to make a build. Thank you for the help :slight_smile:

Also, I edited the previous post to put those walls of text in spoiler tag :slight_smile: