Search Unity

Bug Unity M1 Mac batch mode build error

Discussion in 'Editor & General Support' started by yusuf_unity70, May 29, 2023.

  1. yusuf_unity70

    yusuf_unity70

    Joined:
    Oct 7, 2021
    Posts:
    1
    Hi, I am getting build error from CI with M1 mac setup. It works good with Intel, I am getting this build error from Silicon version. I've tried 4 different Unity version but all of them have same build error. This log is from empty project so the issue is not related with code base.

    Here is the log:
    Code (CSharp):
    1.  
    2. "Library/PackageCache/com.unity.ugui@1.0.0/Runtime/UI/Core/VertexModifiers/Shadow.cs"
    3. -langversion:9.0
    4.  
    5. /deterministic
    6. /optimize+
    7. /debug:portable
    8. /nologo
    9. /RuntimeMetadataVersion:v4.0.30319
    10.  
    11. /nowarn:0169
    12. /nowarn:0649
    13. /nowarn:1701
    14. /nowarn:1702
    15. /utf8output
    16. /preferreduilang:en-US
    17. -warn:0
    18.  
    19. /additionalfile:"Library/Bee/artifacts/900b0aE.dag/UnityEngine.UI.AdditionalFile.txt"
    20. ##### Custom Environment Variables
    21. DOTNET_MULTILEVEL_LOOKUP=0
    22. ##### ExitCode
    23. 138
    24. [116/152 0s] Csc Library/Bee/artifacts/900b0aE.dag/UnityEngine.TestRunner.dll (+2 others)
    25. ##### CommandLine
    26. "/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/NetCoreRuntime/dotnet" exec "/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/DotNetSdkRoslyn/csc.dll" /nostdlib /noconfig /shared "@Library/Bee/artifacts/900b0aE.dag/UnityEngine.TestRunner.rsp"
    27. ##### Contents of Library/Bee/artifacts/900b0aE.dag/UnityEngine.TestRunner.rsp
    28. -target:library
    29. -out:"Library/Bee/artifacts/900b0aE.dag/UnityEngine.TestRunner.dll"
    30. -refout:"Library/Bee/artifacts/900b0aE.dag/UnityEngine.TestRunner.ref.dll"
    31. -define:UNITY_2021_3_26
    32. -define:UNITY_2021_3
    33. -define:UNITY_2021
    34. -define:UNITY_5_3_OR_NEWER
    35. -define:UNITY_5_4_OR_NEWER
    36. -define:UNITY_5_5_OR_NEWER
    37. -define:UNITY_5_6_OR_NEWER
    38. -define:UNITY_2017_1_OR_NEWER
    39. -define:UNITY_2017_2_OR_NEWER
    40. -define:UNITY_2017_3_OR_NEWER
    41. -define:UNITY_2017_4_OR_NEWER
    42. -define:UNITY_2018_1_OR_NEWER
    43. -define:UNITY_2018_2_OR_NEWER
    44. -define:UNITY_2018_3_OR_NEWER
    45. -define:UNITY_2018_4_OR_NEWER
    46. -define:UNITY_2019_1_OR_NEWER
    47. -define:UNITY_2019_2_OR_NEWER
    48. -define:UNITY_2019_3_OR_NEWER
    49. -define:UNITY_2019_4_OR_NEWER
    50. -define:UNITY_2020_1_OR_NEWER
    51. -define:UNITY_2020_2_OR_NEWER
    52. -define:UNITY_2020_3_OR_NEWER
    53. -define:UNITY_2021_1_OR_NEWER
    54. -define:UNITY_2021_2_OR_NEWER
    55. -define:UNITY_2021_3_OR_NEWER
    56. -define:UNITY_INCLUDE_TESTS
    57. -define:ENABLE_AR
    58. -define:ENABLE_AUDIO
    59. -define:ENABLE_CACHING
    60. -define:ENABLE_CLOTH
    61. -define:ENABLE_MICROPHONE
    62. -define:ENABLE_MULTIPLE_DISPLAYS
    63. -define:ENABLE_PHYSICS
    64. -define:ENABLE_TEXTURE_STREAMING
    65. -define:ENABLE_UNET
    66. -define:ENABLE_LZMA
    67. -define:ENABLE_UNITYEVENTS
    68. -define:ENABLE_VR
    69. -define:ENABLE_WEBCAM
    70. -define:ENABLE_UNITYWEBREQUEST
    71. -define:ENABLE_WWW
    72. -define:ENABLE_CLOUD_SERVICES
    73. -define:ENABLE_CLOUD_SERVICES_COLLAB
    74. -define:ENABLE_CLOUD_SERVICES_COLLAB_SOFTLOCKS
    75. -define:ENABLE_CLOUD_SERVICES_ADS
    76. -define:ENABLE_CLOUD_SERVICES_USE_WEBREQUEST
    77. -define:ENABLE_CLOUD_SERVICES_CRASH_REPORTING
    78. -define:ENABLE_CLOUD_SERVICES_PURCHASING
    79. -define:ENABLE_CLOUD_SERVICES_ANALYTICS
    80. -define:ENABLE_CLOUD_SERVICES_UNET
    81. -define:ENABLE_CLOUD_SERVICES_BUILD
    82. -define:ENABLE_CLOUD_LICENSE
    83. -define:ENABLE_EDITOR_HUB_LICENSE
    84. -define:ENABLE_WEBSOCKET_CLIENT
    85. -define:ENABLE_DIRECTOR_AUDIO
    86. -define:ENABLE_DIRECTOR_TEXTURE
    87. -define:ENABLE_MANAGED_JOBS
    88. -define:ENABLE_MANAGED_TRANSFORM_JOBS
    89. -define:ENABLE_MANAGED_ANIMATION_JOBS
    90. -define:ENABLE_MANAGED_AUDIO_JOBS
    91. -define:ENABLE_ENGINE_CODE_STRIPPING
    92. -define:ENABLE_ONSCREEN_KEYBOARD
    93. -define:ENABLE_MANAGED_UNITYTLS
    94. -define:INCLUDE_DYNAMIC_GI
    95. -define:ENABLE_SCRIPTING_GC_WBARRIERS
    96. -define:PLATFORM_SUPPORTS_MONO
    97. -define:ENABLE_VIDEO
    98. -define:ENABLE_ACCELERATOR_CLIENT_DEBUGGING
    99. -define:PLATFORM_IOS
    100. -define:TEXTCORE_1_0_OR_NEWER
    101. -define:ENABLE_RUNTIME_GI
    102. -define:ENABLE_GAMECENTER
    103. -define:ENABLE_NETWORK
    104. -define:ENABLE_UNITY_GAME_SERVICES_ANALYTICS_SUPPORT
    105. -define:ENABLE_IOS_ON_DEMAND_RESOURCES
    106. -define:ENABLE_IOS_APP_SLICING
    107. -define:PLAYERCONNECTION_LISTENS_FIXED_PORT
    108. -define:DEBUGGER_LISTENS_FIXED_PORT
    109. -define:PLATFORM_SUPPORTS_ADS_ID
    110. -define:SUPPORT_ENVIRONMENT_VARIABLES
    111. -define:PLATFORM_SUPPORTS_PROFILER
    112. -define:ENABLE_CRUNCH_TEXTURE_COMPRESSION
    113. -define:ENABLE_ETC_COMPRESSION
    114. -define:ENABLE_UNITYADS_RUNTIME
    115. -define:UNITY_UNITYADS_API
    116. -define:UNITY_IOS
    117. -define:PLATFORM_IPHONE
    118. -define:UNITY_IPHONE
    119. -define:UNITY_IPHONE_API
    120. -define:UNITY_HAS_GOOGLEVR
    121. -define:ENABLE_SPATIALTRACKING
    122. -define:ENABLE_MONO
    123. -define:NET_4_6
    124. -define:NET_UNITY_4_8
    125. -define:ENABLE_PROFILER
    126. -define:DEBUG
    127. -define:TRACE
    128. -define:UNITY_ASSERTIONS
    129. -define:UNITY_EDITOR
    130. -define:UNITY_EDITOR_64
    131. -define:UNITY_EDITOR_OSX
    132. -define:ENABLE_UNITY_COLLECTIONS_CHECKS
    133. -define:ENABLE_BURST_AOT
    134. -define:UNITY_TEAM_LICENSE
    135. -define:UNITY_PRO_LICENSE
    136. -define:ENABLE_CUSTOM_RENDER_TEXTURE
    137. -define:ENABLE_DIRECTOR
    138. -define:ENABLE_LOCALIZATION
    139. -define:ENABLE_SPRITES
    140. -define:ENABLE_TERRAIN
    141. -define:ENABLE_TILEMAP
    142. -define:ENABLE_TIMELINE
    143. -define:ENABLE_INPUT_SYSTEM
    144. -define:ENABLE_LEGACY_INPUT_MANAGER
    145. -define:TEXTCORE_FONT_ENGINE_1_5_OR_NEWER
    146. -define:ODIN_INSPECTOR
    147. -define:MOREMOUNTAINS_NICEVIBRATIONS_RUMBLE
    148. -define:MOREMOUNTAINS_NICEVIBRATIONS
    149. -define:MOREMOUNTAINS_NICEVIBRATIONS_INSTALLED
    150. -define:ODIN_INSPECTOR_3
    151. -define:ODIN_INSPECTOR_3_1
    152. -define:CSHARP_7_OR_LATER
    153. -define:CSHARP_7_3_OR_NEWER
    154. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.Common.dll"
    155. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.dll"
    156. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.Xcode.dll"
    157. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEditor.Graphs.dll"
    158. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.CoreModule.dll"
    159. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.DeviceSimulatorModule.dll"
    160. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.DiagnosticsModule.dll"
    161. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.dll"
    162. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.GraphViewModule.dll"
    163. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.PackageManagerUIModule.dll"
    164. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.QuickSearchModule.dll"
    165. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.SceneTemplateModule.dll"
    166. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.TextCoreFontEngineModule.dll"
    167. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.TextCoreTextEngineModule.dll"
    168. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.UIBuilderModule.dll"
    169. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.UIElementsModule.dll"
    170. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.UIElementsSamplesModule.dll"
    171. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.UIServiceModule.dll"
    172. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEditor.UnityConnectModule.dll"
    173. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.AccessibilityModule.dll"
    174. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.AIModule.dll"
    175. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.AndroidJNIModule.dll"
    176. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.AnimationModule.dll"
    177. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.ARModule.dll"
    178. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.AssetBundleModule.dll"
    179. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.AudioModule.dll"
    180. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.ClothModule.dll"
    181. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.CoreModule.dll"
    182. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.CrashReportingModule.dll"
    183. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.DirectorModule.dll"
    184. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.dll"
    185. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.DSPGraphModule.dll"
    186. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.GameCenterModule.dll"
    187. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.GIModule.dll"
    188. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.GridModule.dll"
    189. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.HotReloadModule.dll"
    190. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.ImageConversionModule.dll"
    191. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.IMGUIModule.dll"
    192. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.InputLegacyModule.dll"
    193. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.InputModule.dll"
    194. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.JSONSerializeModule.dll"
    195. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.LocalizationModule.dll"
    196. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.ParticleSystemModule.dll"
    197. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.PerformanceReportingModule.dll"
    198. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.Physics2DModule.dll"
    199. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.PhysicsModule.dll"
    200. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.ProfilerModule.dll"
    201. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.RuntimeInitializeOnLoadManagerInitializerModule.dll"
    202. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.ScreenCaptureModule.dll"
    203. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.SharedInternalsModule.dll"
    204. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.SpriteMaskModule.dll"
    205. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.SpriteShapeModule.dll"
    206. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.StreamingModule.dll"
    207. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.SubstanceModule.dll"
    208. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.SubsystemsModule.dll"
    209. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.TerrainModule.dll"
    210. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.TerrainPhysicsModule.dll"
    211. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.TextCoreFontEngineModule.dll"
    212. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.TextCoreTextEngineModule.dll"
    213. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.TextRenderingModule.dll"
    214. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.TilemapModule.dll"
    215. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.TLSModule.dll"
    216. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UIElementsModule.dll"
    217. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UIElementsNativeModule.dll"
    218. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UIModule.dll"
    219. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UmbraModule.dll"
    220. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UNETModule.dll"
    221. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UnityAnalyticsCommonModule.dll"
    222. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UnityAnalyticsModule.dll"
    223. -r:"/Applications/Unity/Hub/Editor/2021.3.26f1/Unity.app/Contents/Managed/UnityEngine/UnityEngine.UnityConnectModule.dll"
    224. -r:"/Applications/Unity/Hub/Editor/2021.3.
    225.  
    226. AssetDatabase: script compilation time: 3.310474s
    227. Scripts have compiler errors.
    228.  
    229. Aborting batchmode due to failure:
    230. Scripts have compiler errors.
    231.  
    232. [Package Manager] Server::Kill -- Server was shutdown
    233. AcceleratorClientConnectionCallback - disconnected - :0
     

    Attached Files:

  2. kniewolewski

    kniewolewski

    Joined:
    Nov 30, 2016
    Posts:
    3
    yusuf_unity70 did you manage to resolve it? I've got exact same error...
     
  3. Arthur-LVGameDev

    Arthur-LVGameDev

    Joined:
    Mar 14, 2016
    Posts:
    228
    Also experiencing this issue -- only on CI. Project compiles (and builds) fine on equivalent M1 workstation, but on our CI (also M1) we see a log nearly identical to the above. There's unfortunately very little to go off of within the immediatley preceding (albeit verbose) logging.