国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Unity使用IL2CPP方式打Windows包

這篇具有很好參考價值的文章主要介紹了Unity使用IL2CPP方式打Windows包。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

筆者Unity版本2021.3.8f1

1,確保安裝了對應(yīng)版本的擴展包:UnitySetup-Windows-IL2CPP-Support-for-Editor

2,打包報錯:

error: Could not set up a toolchain for Architecture x64. Make sure you have the right build tools installed for il2cpp builds. Details:
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Internal build system error. BuildProgram exited with code -2146233088.
error: Could not set up a toolchain for Architecture x64. Make sure you have the right build tools installed for il2cpp builds. Details:
IL2CPP C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
 * Visual Studio 2022 or newer with C++ compilers and Windows 10 SDK (recommended)
 * Visual Studio 2019 with C++ compilers and Windows 10 SDK
 * Visual Studio 2017 with C++ compilers and Windows 10 SDK
 * Visual Studio 2015 with C++ compilers and Windows 10 SDK

Visual Studio 2017 (or newer) is detected using `vswhere.exe` as well as VSCOMNTOOLS environment variables.
Visual Studio 2015 is detected by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry as well as VSCOMNTOOLS environment variables.
Windows 10 SDK is detected by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry.

Unable to detect any compatible Visual Studio installation!
 * Found Visual Studio 2022 installation without C++ tool components

Windows 10 SDK is not installed. You can install from here: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/


Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code. In order to build C++ code for Windows Desktop, you must have one of these installed:
 * Visual Studio 2022 or newer with C++ compilers and Windows 10 SDK (recommended)
 * Visual Studio 2019 with C++ compilers and Windows 10 SDK
 * Visual Studio 2017 with C++ compilers and Windows 10 SDK
 * Visual Studio 2015 with C++ compilers and Windows 10 SDK

Visual Studio 2017 (or newer) is detected using `vswhere.exe` as well as VSCOMNTOOLS environment variables.
Visual Studio 2015 is detected by looking at "SOFTWARE\Microsoft\VisualStudio\14.0_Config\InstallDir" in the registry as well as VSCOMNTOOLS environment variables.
Windows 10 SDK is detected by looking at "SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder" in the registry.

這里:unable-to-build-il2cpp 建議使用Visual Studio Installer補充安裝一些C++相關(guān)的工具包。
Unity使用IL2CPP方式打Windows包

3,若依舊報錯類似Building Library\Bee\artifacts\WinPlayerBuildProgram\ei6vj\ejx6_b_vm6.lump.obj failed with output: i3ib_vm6.lump.cpp
可以考慮把如下腳本放到Assets目錄下(來自這里)文章來源地址http://www.zghlxwxcb.cn/news/detail-507725.html

#if UNITY_EDITOR
using System;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
public class MsvcStdextWorkaround : IPreprocessBuildWithReport
{
    const string kWorkaroundFlag = "/D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS";
    public int callbackOrder => 0;
    public void OnPreprocessBuild(BuildReport report)
    {
        var clEnv = Environment.GetEnvironmentVariable("_CL_");
        if (string.IsNullOrEmpty(clEnv))
        {
            Environment.SetEnvironmentVariable("_CL_", kWorkaroundFlag);
        }
        else if (!clEnv.Contains(kWorkaroundFlag))
        {
            clEnv += " " + kWorkaroundFlag;
            Environment.SetEnvironmentVariable("_CL_", clEnv);
        }
    }
}
#endif // UNITY_EDITOR

到了這里,關(guān)于Unity使用IL2CPP方式打Windows包的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • unity導入Android報錯Unity.IL2CPP.Building.BuilderFailedException

    unity導入Android報錯Unity.IL2CPP.Building.BuilderFailedException

    把從unity導出的Android包作為一個模塊嵌入至Android程序 在解決了sdk31損壞等一系列問題,終于將程序成功安裝到了手機上,以為就要通向光明未來了,結(jié)果在手機端調(diào)試時發(fā)現(xiàn)本人手機硬件(高通778,v8)不支持unity程序。 經(jīng)過百度發(fā)現(xiàn)我導出的unity項目只支持處理器架構(gòu)v7的手

    2024年02月05日
    瀏覽(23)
  • Unity 安卓構(gòu)建錯誤:IL2cpp 需要提取的資源提取失敗

    Unity 安卓構(gòu)建錯誤:IL2cpp 需要提取的資源提取失敗 問題描述: 在 Unity 中進行安卓構(gòu)建時,可能會遇到一個報錯信息:“failed to extract resources needed by IL2cpp”。這個錯誤通常發(fā)生在將 Unity 項目構(gòu)建為安卓應(yīng)用程序時,而 IL2cpp 則是 Unity 用于將 C# 代碼編譯為本地代碼的工具。

    2024年02月04日
    瀏覽(29)
  • 解決Unity安卓編譯錯誤: IL2CPP需要的資源提取失敗

    解決Unity安卓編譯錯誤: IL2CPP需要的資源提取失敗 在開發(fā)Unity游戲時,我們經(jīng)常會遇到各種各樣的問題。其中一個常見的問題是,當我們嘗試將游戲?qū)С鰹锳ndroid應(yīng)用程序時,可能會遇到一個名為\\\"Failed to extract resources needed by IL2CPP\\\"的錯誤。本文將介紹如何解決這個問題,并提供

    2024年02月03日
    瀏覽(85)
  • 2023年Unity Il2CPP/MONO FPS逆向工程

    2023年Unity Il2CPP/MONO FPS逆向工程

    實戰(zhàn)引擎 : Unity Il2CPP/Mono 學完可做 : 森林之子,后室,逃離塔科夫,BattleBit,Rust等 幾乎通殺全部Unity引擎游戲 簡介: 實戰(zhàn)編程代碼:C/C++ B站空間:https://space.bilibili.com/2134677790 課程詳細目錄 :2023年Unity Il2CPP/MONO FPS逆向工程 · 語雀 聯(lián)系方式 :點擊課程詳細目錄查看 效果圖

    2024年02月13日
    瀏覽(27)
  • Unity2020 打包報錯:windowUnity.IL2CPP.Building.BuilderFailedException

    Unity2020 打包報錯:windowUnity.IL2CPP.Building.BuilderFailedException

    在打包的時候報錯:windowUnity.IL2CPP.Building.BuilderFailedException 解決方法:把IL2CPP換成mono,重新打包即可 依次點擊:Edit-Player-Configuration-Mono 再次重新打包即可

    2024年02月16日
    瀏覽(27)
  • 反編譯Unity IL2CPP APK:深入探索逆向工程技術(shù)

    反編譯Unity IL2CPP APK:深入探索逆向工程技術(shù) 在移動應(yīng)用開發(fā)領(lǐng)域中,Unity引擎被廣泛使用以創(chuàng)建令人驚嘆的游戲和應(yīng)用程序。然而,有時候我們可能需要研究某些應(yīng)用程序的內(nèi)部機制或者了解其實現(xiàn)細節(jié)。本文將介紹如何反編譯基于Unity引擎的IL2CPP APK,并提供相應(yīng)的源代碼和

    2024年02月06日
    瀏覽(26)
  • 新版UNITY游戲(IL2CPP類型)使用內(nèi)嵌型機器翻譯插件XUnity.AutoTranslator的食用方法

    #新版UNITY游戲(IL2CPP類型)使用內(nèi)嵌型機器翻譯插件XUnity.AutoTranslator的食用方法# 文檔更新時間:2022/4/3 20:02:50 網(wǎng)絡(luò)具備訪問github.com的能力 能夠進行網(wǎng)頁翻譯的瀏覽器(用來查看官方的說明文檔),以及耐心 網(wǎng)絡(luò)能夠訪問機器翻譯服務(wù)(谷歌等),如果使用百度需要注冊百

    2024年02月09日
    瀏覽(80)
  • 初識IL2CPP

    初識IL2CPP

    在Unity中進行打包時,有兩種打包方式選擇: Mono 和 IL2CPP Mono和IL2Cpp是Unity的腳本后處理方式,通過腳本后處理實現(xiàn)Unity的跨平臺 (1). Mono組成組件: C#編輯器,CLI虛擬機,以及核心類別程序庫 (2).跨平臺過程 Mono通過C#編輯器把腳本打包成中間語言(IL)IL所在的文件就是.dll后綴的

    2024年02月14日
    瀏覽(19)
  • Unity WebGL 打包il2cpp.exe did not run properly!

    Unity WebGL 打包il2cpp.exe did not run properly!

    是中文問題,WebGL的illcpp對執(zhí)行過程中一點點的中文都不允許存在。包括 硬盤的中文名稱 參考 如何更改磁盤盤符的名字 我的文檔中的用戶名有中文 系統(tǒng)用戶名有中文 win+L封鎖之后解鎖會出現(xiàn)當前系統(tǒng)用戶是否有中文 打包路徑中有中文 這個很好解決 環(huán)境變量中有中文 由于

    2024年02月16日
    瀏覽(22)
  • Unity IL2CPP包Crash閃退提示 Cause: null pointer dereference 解決辦法

    Unity IL2CPP包Crash閃退提示 Cause: null pointer dereference 解決辦法

    最近打包到安卓測試時進logo后一直閃退,打開Android Logcat后發(fā)現(xiàn)拋出crash 看樣子是空引用崩潰的 在網(wǎng)上找了幾個方法來試試,到最后才發(fā)現(xiàn)是場景里有Missing物體 方法1.關(guān)閉StripEngineCode 在Project Settings選擇Player頁,在里面的Other Settings取消勾選Strip Engine Code 我試了這個對我沒用

    2024年03月17日
    瀏覽(46)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包