๐ŸŽฎ Unity Study/ERROR Q&A

[Unity Build Error] BuildPlayerWindowBuildMethods ์—๋Ÿฌ & ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

ibelieveinme 2023. 11. 29. 16:48
728x90

[์ƒํ™ฉ]

Unity 2018.4.31f1 ์—์„œ ์•„๋ž˜์™€ ๊ฐ™์ด Build ์…‹ํŒ… ํ›„ Android ๋นŒ๋“œ ์ค‘ ์•„๋ž˜ ์—๋Ÿฌ ๋ฐœ์ƒ

Mono Build ํ•  ๋• ์—๋Ÿฌ๊ฐ€ ์•ˆ๋‚ฌ์—ˆ๋Š”๋ฐ, IL2CPP ๋กœ ๋ฐ”๊พธ๊ณ  ๋นŒ๋“œํ•˜๋‹ˆ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋‹ค.

์•„ ๋˜, Runtime Version ์„ .NET 3.5 Equivalent ์ด  Deprecated ๋ผ๊ธธ๋ž˜ .NET 4.x Equivalent ๋กœ ๋ณ€๊ฒฝํ•˜๊ธด ํ–ˆ๋‹ค.

 

[์—๋Ÿฌ ๋ฉ”์„ธ์ง€]

Build completed with a result of 'Failed'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

 

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:194 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:97 
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

 

 

[์‹œํ–‰์ฐฉ์˜ค]

1) Unity ๊ฐ€ 2๊ฐœ ์ผœ์ ธ ์žˆ์œผ๋ฉด ์•ˆ๋œ๋Œ€์„œ 1๊ฐœ๋งŒ ๋‘๊ณ  ๋นŒ๋“œํ–ˆ๋Š”๋ฐ ์•ˆ๋จ.

2) Reimport ํ•ด๋ด๋„ ์•ˆ๋จ

3) Andoid SDK ์—…๋ฐ์ดํŠธ ํ•ด๋ด๋„ ์•ˆ๋จ

4) Strip Engine Code ์†์„ฑ ํ•ด์ œ -> ์„ฑ๊ณต!

: ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ์—๋Ÿฌ๊ฐ€ ๋‚˜๋Š” Script ๋ฅผ ๋นŒ๋“œ์— ํฌํ•จ์‹œํ‚ค์ง€ ์•Š์Œ์œผ๋กœ์จ ํ•ด๊ฒฐ๋˜๋Š” ๋“ฏ ํ•˜๋‹ค.

 

https://docs.unity3d.com/kr/2018.4/Manual/ManagedCodeStripping.html

 

๊ด€๋ฆฌ๋˜๋Š” ์ฝ”๋“œ ์ŠคํŠธ๋ฆฌํ•‘ - Unity ๋งค๋‰ด์–ผ

๊ด€๋ฆฌ๋˜๋Š” ์ฝ”๋“œ ์ŠคํŠธ๋ฆฌํ•‘์€ ๋นŒ๋“œ์—์„œ ์‚ฌ์šฉ๋˜์ง€ ์•Š๋Š” ์ฝ”๋“œ๋ฅผ ์ œ๊ฑฐํ•˜์—ฌ ์ตœ์ข… ๋นŒ๋“œ ํฌ๊ธฐ๋ฅผ ๋Œ€ํญ ์ค„์ด๋Š” ์ž‘์—…์ž…๋‹ˆ๋‹ค. IL2CPP ์Šคํฌ๋ฆฝํŒ… ๋ฐฑ์—”๋“œ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ๊ด€๋ฆฌ๋˜๋Š” ์ฝ”๋“œ ์ŠคํŠธ๋ฆฌํ•‘์„ ์ˆ˜ํ–‰ํ•˜๋ฉด C++

docs.unity3d.com

 

728x90