Unity on Apple silicon and Big Sur: Known issues and workarounds

I have just submitted the bug report. (Case 1276597)

Do you specifically get these errors when targeting Apple silicon? That seems bizarre as they don’t seem platform specific at all:

Library/PackageCache/com.unity.collections@0.9.0-preview.6/Unity.Collections/NativeBitArray.cs(29,56): error CS0308: The non-generic method 'AtomicSafetyHandle.NewStaticSafetyId(string)' cannot be used with type arguments
Library/PackageCache/com.unity.collections@0.9.0-preview.6/Unity.Collections/NativeHashMap.cs(107,56): error CS0308: The non-generic method 'AtomicSafetyHandle.NewStaticSafetyId(string)' cannot be used with type arguments
Library/PackageCache/com.unity.collections@0.9.0-preview.6/Unity.Collections/NativeHashMap.cs(535,56): error CS0308: The non-generic method 'AtomicSafetyHandle.NewStaticSafetyId(string)' cannot be used with type arguments
Library/PackageCache/com.unity.collections@0.9.0-preview.6/Unity.Collections/NativeList.cs(40,56): error CS0308: The non-generic method 'AtomicSafetyHandle.NewStaticSafetyId(string)' cannot be used with type arguments
Library/PackageCache/com.unity.collections@0.9.0-preview.6/Unity.Collections/NativeQueue.cs(256,56): error CS0308: The non-generic method 'AtomicSafetyHandle.NewStaticSafetyId(string)' cannot be used with type arguments

@Tautvydas-Zilys
I have Xcode 11.7 installed and the beta 12, it shows that it is not installed. See attached images.

6299374--697105--Screen Shot 2020-09-10 at 1.59.01 PM.png

When I build the project in Unity 2019.4.9 I try to build it in Xcode 11.7 and I get the following error:

Undefined symbols for architecture x86_64:

  "_getUnityPurchasingAppReceipt", referenced from:

      _iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8 in 132801B1DD6E49A11BCCB5DE9B17292B.o

    (maybe you meant: _iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8, _OSXStoreBindings_getUnityPurchasingAppReceipt_m702EC6E592BBF681A0A84538DFEA076459A6D702 )

  "_setUnityPurchasingCallback", referenced from:

      _iOSStoreBindings_setUnityPurchasingCallback_m429E495193487E2E7B489EAA4B851BF0F2CEAB2A in 132801B1DD6E49A11BCCB5DE9B17292B.o

    (maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_m1B9E77986F7FE52B0B0CBCAE86496D0FF4A5E7EB, _iOSStoreBindings_setUnityPurchasingCallback_m429E495193487E2E7B489EAA4B851BF0F2CEAB2A )

  "_unityPurchasingAddTransactionObserver", referenced from:

      _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 in 132801B1DD6E49A11BCCB5DE9B17292B.o

    (maybe you meant: _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074, _OSXStoreBindings_unityPurchasingAddTransactionObserver_mE966496A18B53467C15198051687E4075E74DD3C )

  "_unityPurchasingFinishTransaction", referenced from:

      _iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F in 132801B1DD6E49A11BCCB5DE9B17292B.o

    (maybe you meant: _OSXStoreBindings_unityPurchasingFinishTransaction_m145373244A1B58D5642E452D85C0ED21F9C07946, _iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F )

  "_unityPurchasingInterceptPromotionalPurchases", referenced from:

      _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C in 132801B1DD6E49A11BCCB5DE9B17292B.o

    (maybe you meant: _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m01F28E4125E6D167E625F57561DBE34AAB53CCEF, _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C )

  "_unityPurchasingPurchase", referenced from:

      _iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 in 132801B1DD6E49A11BCCB5DE9B17292B.o

    (maybe you meant: _OSXStoreBindings_unityPurchasingPurchase_m934CC8567A5B2054950D231AAC29F221E18D7DD8, _iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 )

  "_unityPurchasingRestoreTransactions", referenced from:

      _iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405 in 132801B1DD6E49A11BCCB5DE9B17292B.o

    (maybe you meant: _iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405, _OSXStoreBindings_unityPurchasingRestoreTransactions_m80BB9063E4017D66A850FC9B5DF913D0AD9241C7 )

  "_unityPurchasingRetrieveProducts", referenced from:

      _iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518 in 132801B1DD6E49A11BCCB5DE9B17292B.o

    (maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518, _OSXStoreBindings_unityPurchasingRetrieveProducts_m762C673967DF6672FE9D65DEE647142F0601572B )

ld: symbol(s) not found for architecture x86_64





  at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (System.Collections.Generic.HashSet`1[T] objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) [0x001fb] in <505b9b0e43534b28a864100cdbaf2041>:0

  at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00275] in <505b9b0e43534b28a864100cdbaf2041>:0

  at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <505b9b0e43534b28a864100cdbaf2041>:0

  at il2cpp.Program.DoRun (System.String[] args, System.Collections.Generic.List`1[T] foundAssemblies) [0x005bc] in <74bf8ed2b18e4aa7983371dc2cede53a>:0

  at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00042] in <74bf8ed2b18e4aa7983371dc2cede53a>:0

  at il2cpp.Program.Main (System.String[] args) [0x00036] in <74bf8ed2b18e4aa7983371dc2cede53a>:0

rm: /Users/dustinmerrell/Library/Developer/Xcode/DerivedData/Kjos_IPS-dccghsljuvnutcggxuzlteytynrx/Build/Products/Debug//GameAssembly.map: No such file or directory

When I build it out of Unity 2020 and attempt to build it in Xcode 11.7 I get the following:

ld: warning: passed two min versions (10.11, 10.12) for platform macOS. Using 10.12.

Undefined symbols for architecture x86_64:

  "_getUnityPurchasingAppReceipt", referenced from:

      _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186 in 071ECACB41614EE8EC693DB8C63B8DE3.o

    (maybe you meant: _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186, _OSXStoreBindings_getUnityPurchasingAppReceipt_m3AA785D0D2B12B9BC9FCD08CBD3CC92FBEFD2804 )

  "_setUnityPurchasingCallback", referenced from:

      _iOSStoreBindings_setUnityPurchasingCallback_mB70E6B7FF1D6C8266EBD676BBA5F0AC69913C52D in 071ECACB41614EE8EC693DB8C63B8DE3.o

    (maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_m818C1B933A570F054F39C5CBC2D6CF801E2FA891, _iOSStoreBindings_setUnityPurchasingCallback_mB70E6B7FF1D6C8266EBD676BBA5F0AC69913C52D )

  "_unityPurchasingAddTransactionObserver", referenced from:

      _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69 in 071ECACB41614EE8EC693DB8C63B8DE3.o

    (maybe you meant: _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69, _OSXStoreBindings_unityPurchasingAddTransactionObserver_m2F6005CE1ABF9069D32BA4A8635B373B56A5C1B5 )

  "_unityPurchasingFinishTransaction", referenced from:

      _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA in 071ECACB41614EE8EC693DB8C63B8DE3.o

    (maybe you meant: _OSXStoreBindings_unityPurchasingFinishTransaction_mFBF266FD8B8DAAC3758AC32A65FB919D5A20E611, _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA )

  "_unityPurchasingInterceptPromotionalPurchases", referenced from:

      _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E in 071ECACB41614EE8EC693DB8C63B8DE3.o

    (maybe you meant: _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E, _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m9E32BEFD1AF983DFCEC5696760B5F6DB023096B8 )

  "_unityPurchasingPurchase", referenced from:

      _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525 in 071ECACB41614EE8EC693DB8C63B8DE3.o

    (maybe you meant: _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525, _OSXStoreBindings_unityPurchasingPurchase_mF69FCEF458047C49F2DC7E20D3A57D1780ECBA70 )

  "_unityPurchasingRestoreTransactions", referenced from:

      _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 in 071ECACB41614EE8EC693DB8C63B8DE3.o

    (maybe you meant: _OSXStoreBindings_unityPurchasingRestoreTransactions_m911F4AFE04F3EFEE15F9D9A731FF1335DC35F899, _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 )

  "_unityPurchasingRetrieveProducts", referenced from:

      _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE in 071ECACB41614EE8EC693DB8C63B8DE3.o

    (maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE, _OSXStoreBindings_unityPurchasingRetrieveProducts_m1FD0797EA2813172026165F1D60D3732CC5F69AC )

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)





  at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (System.Collections.Generic.HashSet`1[T] objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) [0x00203] in <73bcdbc8774a4498bb2dcf33e7791123>:0

  at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x0025c] in <73bcdbc8774a4498bb2dcf33e7791123>:0

  at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <73bcdbc8774a4498bb2dcf33e7791123>:0

  at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions, System.Collections.ObjectModel.ReadOnlyCollection`1[T] matchedAssemblyMethodSourceFiles) [0x001f5] in <5ede69b67db34445a8da21dbf9716bb3>:0

  at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <5ede69b67db34445a8da21dbf9716bb3>:0

  at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <5ede69b67db34445a8da21dbf9716bb3>:0

  at il2cpp.Program.Main (System.String[] args) [0x00038] in <5ede69b67db34445a8da21dbf9716bb3>:0

Command /bin/sh failed with exit code 1

When I build it out of Unity 2020 and attempt to build it in Xcode 12 I get the following:

Undefined symbols for architecture x86_64:
  "_getUnityPurchasingAppReceipt", referenced from:
      _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186 in A26BC6EDA46EF15AD0020C651E4BBE51.o
     (maybe you meant: _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186, _OSXStoreBindings_getUnityPurchasingAppReceipt_m3AA785D0D2B12B9BC9FCD08CBD3CC92FBEFD2804 )
  "_setUnityPurchasingCallback", referenced from:
      _iOSStoreBindings_setUnityPurchasingCallback_mB70E6B7FF1D6C8266EBD676BBA5F0AC69913C52D in A26BC6EDA46EF15AD0020C651E4BBE51.o
     (maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_m818C1B933A570F054F39C5CBC2D6CF801E2FA891, _iOSStoreBindings_setUnityPurchasingCallback_mB70E6B7FF1D6C8266EBD676BBA5F0AC69913C52D )
  "_unityPurchasingAddTransactionObserver", referenced from:
      _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69 in A26BC6EDA46EF15AD0020C651E4BBE51.o
     (maybe you meant: _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69, _OSXStoreBindings_unityPurchasingAddTransactionObserver_m2F6005CE1ABF9069D32BA4A8635B373B56A5C1B5 )
  "_unityPurchasingFinishTransaction", referenced from:
      _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA in A26BC6EDA46EF15AD0020C651E4BBE51.o
     (maybe you meant: _OSXStoreBindings_unityPurchasingFinishTransaction_mFBF266FD8B8DAAC3758AC32A65FB919D5A20E611, _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA )
  "_unityPurchasingInterceptPromotionalPurchases", referenced from:
      _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E in A26BC6EDA46EF15AD0020C651E4BBE51.o
     (maybe you meant: _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E, _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m9E32BEFD1AF983DFCEC5696760B5F6DB023096B8 )
  "_unityPurchasingPurchase", referenced from:
      _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525 in A26BC6EDA46EF15AD0020C651E4BBE51.o
     (maybe you meant: _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525, _OSXStoreBindings_unityPurchasingPurchase_mF69FCEF458047C49F2DC7E20D3A57D1780ECBA70 )
  "_unityPurchasingRestoreTransactions", referenced from:
      _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 in A26BC6EDA46EF15AD0020C651E4BBE51.o
     (maybe you meant: _OSXStoreBindings_unityPurchasingRestoreTransactions_m911F4AFE04F3EFEE15F9D9A731FF1335DC35F899, _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 )
  "_unityPurchasingRetrieveProducts", referenced from:
      _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE in A26BC6EDA46EF15AD0020C651E4BBE51.o
     (maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE, _OSXStoreBindings_unityPurchasingRetrieveProducts_m1FD0797EA2813172026165F1D60D3732CC5F69AC )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


  at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (System.Collections.Generic.HashSet`1[T] objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) [0x00203] in <73bcdbc8774a4498bb2dcf33e7791123>:0
  at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x0025c] in <73bcdbc8774a4498bb2dcf33e7791123>:0
  at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <73bcdbc8774a4498bb2dcf33e7791123>:0
  at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions, System.Collections.ObjectModel.ReadOnlyCollection`1[T] matchedAssemblyMethodSourceFiles) [0x001f5] in <5ede69b67db34445a8da21dbf9716bb3>:0
  at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <5ede69b67db34445a8da21dbf9716bb3>:0
  at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <5ede69b67db34445a8da21dbf9716bb3>:0
  at il2cpp.Program.Main (System.String[] args) [0x00038] in <5ede69b67db34445a8da21dbf9716bb3>:0
Command /bin/sh failed with exit code 1

The errors you showed are unrelated to Apple silicon. You’re running into this: Compilation errors using Unity IAP 1.21, Unity 2018.2.0f2, IL2CPP for macOS

As for the Unity saying you have Xcode 11.7: your machine is probably configured to default to that version. You should be able to switch your default Xcode installation by using Xcode-select utility:

sudo Xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
1 Like

I will test it on my Windows machine and get back to you!

EDIT:
I apologize for my mistake. It appears the Collections package does not play well with Unity Alpha versions, regardless of platform. Testing on several Unity Alpha versions shows the same errors even on my Windows machine.

I then decided to try on both Unity 2020.1.5f1 and 2020.2.0b2. However, the Collections package is missing from the package manager. Unity’s mathematics package is also missing. Although, installing the Jobs package will nonetheless trigger the installation of both Collections and Unity mathematics package successfully without any errors. This missing-packages-issue does not appear on my Windows machine. Should I file a bug report for this? (I’ve attached a SS of the missing packages on 2020.2.0b2)

Also, for anybody else looking for an editor that will run on the DTK: https://github.com/microsoft/vscode/issues/104780https://github.com/microsoft/vscode/issues/104780

6300510--697630--Screenshot 2020-09-11 at 10.41.00 PM.png

@Tautvydas-Zilys I added your workaround but now I get a different message.

/Users/dustinmerrell/Library/Developer/Xcode/DerivedData/Kjos_IPS-dccghsljuvnutcggxuzlteytynrx/Build/Products/Debug/KJOS IPS.app: code object is not signed at all
In subcomponent: /Users/dustinmerrell/Library/Developer/Xcode/DerivedData/Kjos_IPS-dccghsljuvnutcggxuzlteytynrx/Build/Products/Debug/KJOS IPS.app/Contents/PlugIns/unitypurchasing.bundle
Command /usr/bin/codesign failed with exit code 1

I deleted the IAP and reinstalled the v2.0.0 from the package manager. What am I missing?

Thank you for your time.

I believe you’re running into this: https://discussions.unity.com/t/807947

The simplest workaround would be to disable Xcode project generation it seems.

Are you saying you’re seeing different available packages in the package manager UI on a brand new project on Windows vs Mac editor?

After much digging around, it seems several packages being missing is entirely normal >> https://discussions.unity.com/t/795542

Thank you @Tautvydas-Zilys so very much for your help! I will endeavor to do better testing and research subsequently! :slight_smile:

We found two new issues related to native Apple silicon builds that only happen on macOS Big Sur beta 6 (they don’t happen on beta 5 or older). I’ve edited the original post to reflect this.

I’ve tried to build empty project for Apple Silicon with IL2CPP and got link error. My dev environment:
Intel based macOS Catalina 10.15.6
Unity 2020.2.0b2.3094
Xcode 12.0 (12A7209)
Build settings: Target platform: macOS, Architecture: Apple Silicon
Here is the log snippet:

Invoking UnityLinker with response file. response.rsp contents: -out="/Users/dmitry/projects/Temp/TestAppleSilicon/Temp/StagingArea/Data/Managed/tempStrip" -x="/Users/dmitry/projects/Temp/TestAppleSilicon/Temp/StagingArea/Data/Managed/TypesInScenes.xml" -d="/Users/dmitry/projects/Temp/TestAppleSilicon/Temp/StagingArea/Data/Managed" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory="/Users/dmitry/projects/Temp/TestAppleSilicon/Temp/StagingArea/Data/Managed" --rule-set=Conservative --editor-data-file="/Users/dmitry/projects/Temp/TestAppleSilicon/Temp/StagingArea/Data/Managed/EditorToUnityLinkerData.json" --platform=MacOSX --engine-modules-asset-file="/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport/modules.asset"
/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/build/deploy/net471/UnityLinker.exe exited after 3492 ms.
Invoking il2cpp with arguments: --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="MacOSX" --architecture="ARM64" --configuration="Release" --outputpath="/Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/Native/GameAssembly.dylib" --cachedirectory="/Users/dmitry/projects/Temp/TestAppleSilicon/Assets/../Library/macOS/ARM64/il2cpp_cache" --avoid-dynamic-library-copy --incremental-g-c-time-slice=3 --baselib-directory="/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport/Variations/macos_ARM64_nondevelopment_il2cpp" --profiler-report --map-file-parser="/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/dmitry/projects/Temp/TestAppleSilicon/Temp/StagingArea/Data/Managed" --generatedcppdir="/Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/il2cppOutput"
/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/build/BeeSettings/offline/bee.exe exited after 10697 ms.
Failed running /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/build/BeeSettings/offline/bee.exe --useprebuiltbuildprogram

stdout:
[     ] Require frontend run.  tundra.dag no longer valid. FileSignature timestamp changed: il2cpp_settings.json
[        0s] Executed build program. Created build graph with 2 nodes.
[   0s] Freezing tundra.dag.json into .dag (.dag file didn't exist)
[BUSY 6s] Il2Cpp /Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/Native/GameAssembly.dylib
[0/2 10s] Il2Cpp /Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/Native/GameAssembly.dylib
##### CommandLine
"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/MonoBleedingEdge/bin/mono" "/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/build/deploy/net471/il2cpp.exe" --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="MacOSX" --architecture="ARM64" --configuration="Release" --outputpath="/Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/Native/GameAssembly.dylib" --cachedirectory="/Users/dmitry/projects/Temp/TestAppleSilicon/Assets/../Library/macOS/ARM64/il2cpp_cache" --avoid-dynamic-library-copy --incremental-g-c-time-slice=3 --baselib-directory="/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport/Variations/macos_ARM64_nondevelopment_il2cpp" --profiler-report --map-file-parser="/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/Users/dmitry/projects/Temp/TestAppleSilicon/Temp/StagingArea/Data/Managed" --generatedcppdir="/Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/il2cppOutput"
##### ExitCode
1
##### Output
Running il2cpp.exe in workstation GC mode.
Building GameAssembly.dylib with ClangToolChain
    Mac Dev SDK: /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk

    Output directory: /Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/Native
    Cache directory: /Users/dmitry/projects/Temp/TestAppleSilicon/Library/macOS/ARM64/il2cpp_cache
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException:

In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:32:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_dev_t;         /* dev_t */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
        ^
note: '__uint128_t' declared here
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_wctype_t;
        ^
note: '__uint128_t' declared here
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:64:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_size_t.h:31:9: error: unknown type name '__darwin_size_t'
typedef __darwin_size_t        size_t;
        ^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:141:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rsize_t.h:30:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.


Invocation was: Executable: /usr/bin/clang
Arguments: -DTARGET_MACH -DPLATFORM_MACOSX -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -I"/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/baselib/Platforms/OSX/Include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/il2cppOutput" -g -c -fvisibility=hidden -fno-strict-overflow -O3 -mmacosx-version-min=11.0 -arch arm64 -isysroot /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/malloc -fexceptions "/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h" -Wno-pragma-once-outside-header -o "/Users/dmitry/projects/Temp/TestAppleSilicon/Library/macOS/ARM64/il2cpp_cache/F7ABE0AE839BA4D78299E96B222064FD.h.gch"

  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.InvokePchCompilation (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes, NiceIO.NPath sourceFile) [0x0028c] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.CompilePch (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes) [0x00019] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.OnBeforeCompile (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes) [0x0000f] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x000a6] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions, System.Collections.ObjectModel.ReadOnlyCollection`1[T] matchedAssemblyMethodSourceFiles) [0x001f5] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.Main (System.String[] args) [0x00000] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0

Unhandled Exception:
Unity.IL2CPP.Building.BuilderFailedException:

In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:32:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_dev_t;         /* dev_t */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
        ^
note: '__uint128_t' declared here
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_wctype_t;
        ^
note: '__uint128_t' declared here
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:64:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_size_t.h:31:9: error: unknown type name '__darwin_size_t'
typedef __darwin_size_t        size_t;
        ^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:141:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rsize_t.h:30:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.


Invocation was: Executable: /usr/bin/clang
Arguments: -DTARGET_MACH -DPLATFORM_MACOSX -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -I"/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/baselib/Platforms/OSX/Include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/il2cppOutput" -g -c -fvisibility=hidden -fno-strict-overflow -O3 -mmacosx-version-min=11.0 -arch arm64 -isysroot /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/malloc -fexceptions "/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h" -Wno-pragma-once-outside-header -o "/Users/dmitry/projects/Temp/TestAppleSilicon/Library/macOS/ARM64/il2cpp_cache/F7ABE0AE839BA4D78299E96B222064FD.h.gch"

  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.InvokePchCompilation (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes, NiceIO.NPath sourceFile) [0x0028c] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.CompilePch (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes) [0x00019] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.OnBeforeCompile (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes) [0x0000f] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x000a6] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions, System.Collections.ObjectModel.ReadOnlyCollection`1[T] matchedAssemblyMethodSourceFiles) [0x001f5] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.Main (System.String[] args) [0x00038] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Unity.IL2CPP.Building.BuilderFailedException:

In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:32:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_dev_t;         /* dev_t */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
        ^
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
        ^
note: '__int128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
        ^
note: '__uint128_t' declared here
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
        ^
note: '__uint128_t' declared here
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t      __darwin_wctype_t;
        ^
note: '__uint128_t' declared here
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:64:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_size_t.h:31:9: error: unknown type name '__darwin_size_t'
typedef __darwin_size_t        size_t;
        ^
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:141:
In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rsize_t.h:30:
/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.


Invocation was: Executable: /usr/bin/clang
Arguments: -DTARGET_MACH -DPLATFORM_MACOSX -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -I"/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/bdwgc/include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/xxHash" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/external/baselib/Platforms/OSX/Include" -I"/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/il2cppOutput" -g -c -fvisibility=hidden -fno-strict-overflow -O3 -mmacosx-version-min=11.0 -arch arm64 -isysroot /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/malloc -fexceptions "/Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h" -Wno-pragma-once-outside-header -o "/Users/dmitry/projects/Temp/TestAppleSilicon/Library/macOS/ARM64/il2cpp_cache/F7ABE0AE839BA4D78299E96B222064FD.h.gch"

  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.InvokePchCompilation (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes, NiceIO.NPath sourceFile) [0x0028c] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.CompilePch (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes) [0x00019] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.ToolChains.ClangToolChain.OnBeforeCompile (Unity.IL2CPP.Building.BuildDescriptions.ProgramBuildDescription programBuildDescription, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext, NiceIO.NPath workingDirectory, System.Boolean forceRebuild, System.Boolean verbose, System.Boolean includeFileNamesInHashes) [0x0000f] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x000a6] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
  at il2cpp.Compilation.CompilationDriver.Run (Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions, System.Collections.ObjectModel.ReadOnlyCollection`1[T] matchedAssemblyMethodSourceFiles) [0x001f5] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
  at il2cpp.Program.Main (System.String[] args) [0x00038] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
*** Bee build failed (10.10 seconds), 1 items updated, 2 evaluated

Which Xcode 12 beta did you download?

I downloaded Xcode 12.0 (12A7209) release version (https://download.developer.apple.com/Developer_Tools/Xcode_12/Xcode_12.xip) which was released on Sep 17, 2020. Do I need to use some beta instead?

Yeah I believe that they released Xcode 12 without Apple silicon support :(.

This one should work: Unauthorized - Apple Developer

1 Like

Yeah, thank you! Xcode 12.2 beta works well.

Darn it, just wasted a few hours thinking B6 was the fix for the Apple Silicon Code signing issues then ready this on known issues with B6 :
Big Sur b9 Unity 2020.2.0b6 Xcode 12.2 -

Any updates or workaround? the above code to manual does not work for me.

  • MacOS: macOS Apple silicon player fails to start on macOS Big Sur beta 6 due to lack of code signing (1278362)

Sorry about that. We just noticed that the fix we did in b5 only fixed it for “Apple silicon” builds as opposed to “Intel 64-bit + Apple silicon”. As a workaround, you could build “Apple silicon” instead of universal builds.

Which commands did you try to unblock yourself? And to be sure, are you using il2cpp scripting backend?

Turned out my certificates installed in Keychain was a little screwed up - sorted that lot and can build again but again for Mono only. Tried a Silicon only build with IL2CP and Unity builds ok but getting errors on Xcode about GameAssembly

/Users/tomstringer/Library/Developer/Xcode/DerivedData/asd-exquyunycieeikgymwxxdomjpnpx/Build/Intermediates.noindex/asd.build/Debug/GameAssembly.build/Script-5DD64618871DEE1456320107.sh: line 3: : command not found

Command /bin/sh failed with exit code 127

so guess that’s this - :
IL2CPP=“$PROJECT_DIR/Il2CppOutputProject/IL2CPP/build/deploy/netcoreapp3.1/il2cpp”

“$MONO” “$IL2CPP” -verbose --compile-cpp --libil2cpp-static --dotnetprofile=“unityaot” --platform=“MacOSX” --architecture=“ARM64” --map-file-parser=“IL2CPP/MapFileParser/MapFileParser” --outputpath=“$CONFIGURATION_BUILD_DIR/GameAssembly.dylib” --cachedirectory=“$PROJECT_DIR/il2cpp_cache/ARM64/$CONFIGURATION” --generatedcppdir=“$PROJECT_DIR/Il2CppOutputProject/Source” --configuration=“$CONFIGURATION” --incremental-g-c-time-slice=3 --baselib-directory=“/Applications/Unity/Hub/Editor/2020.2.0b6/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport/Variations/macos_ARM64_nondevelopment_il2cpp” --avoid-dynamic-library-copy --profiler-report

Crap, looks like a backporting fail. IL2CPP was switched to running on .NET Core but it seems that “$MONO” part didn’t get removed in 2020.2 branch. I’ll make sure to chase this down.

You have two options:

  1. Edit the project file (with a text editor or via Xcode, whatever you’re more comfortable with) and delete “$MONO”. “$IL2CPP” is an executable on its own;
  2. Build without using “Generate Xcode project” setting.
1 Like

Well what do you know, seems I have an old Mesh unity 5 Convex error in my project ! once I removed that and built for : Mac OS Silicon & Intel - Xcode Proj. IL2CPP .Net 4.0 - C++ set to Debug.

before building anything, went into Game Assembly and altered the Script to :

IL2CPP=“$PROJECT_DIR/Il2CppOutputProject/IL2CPP/build/deploy/netcoreapp3.1/il2cpp”

“$IL2CPP” -verbose --compile-cpp --libil2cpp-static --dotnetprofile=“unityaot” --platform=“MacOSX” --architecture=“x64” --map-file-parser=“IL2CPP/MapFileParser/MapFileParser” --outputpath=“$CONFIGURATION_TEMP_DIR/x64/GameAssembly.dylib” --cachedirectory=“$PROJECT_DIR/il2cpp_cache/x64/$CONFIGURATION” --generatedcppdir=“$PROJECT_DIR/Il2CppOutputProject/Source” --configuration=“$CONFIGURATION” --incremental-g-c-time-slice=3 --baselib-directory=“/Applications/Unity/Hub/Editor/2020.2.0b6/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport/Variations/macos_x64_nondevelopment_il2cpp” --avoid-dynamic-library-copy --profiler-report

“$IL2CPP” -verbose --compile-cpp --libil2cpp-static --dotnetprofile=“unityaot” --platform=“MacOSX” --architecture=“ARM64” --map-file-parser=“IL2CPP/MapFileParser/MapFileParser” --outputpath=“$CONFIGURATION_TEMP_DIR/ARM64/GameAssembly.dylib” --cachedirectory=“$PROJECT_DIR/il2cpp_cache/ARM64/$CONFIGURATION” --generatedcppdir=“$PROJECT_DIR/Il2CppOutputProject/Source” --configuration=“$CONFIGURATION” --incremental-g-c-time-slice=3 --baselib-directory=“/Applications/Unity/Hub/Editor/2020.2.0b6/Unity.app/Contents/PlaybackEngines/MacStandaloneSupport/Variations/macos_ARM64_nondevelopment_il2cpp” --avoid-dynamic-library-copy --profiler-report

mkdir -pv “$CONFIGURATION_BUILD_DIR”

lipo “$CONFIGURATION_TEMP_DIR/x64/GameAssembly.dylib” “$CONFIGURATION_TEMP_DIR/ARM64/GameAssembly.dylib” -create -output “$CONFIGURATION_BUILD_DIR/GameAssembly.dylib”

  • Next was to select my Team in Signing & Capabilities, Signing Cert set to Development. Bundle ID is one created in iTC for Mac App.

  • Then built Game Assembly target for Mac Silicon, once completed then built my Main App Target for Silicon.

Runs like a charm, also runs like a charm for Intel and Rosetta.

Key point is, no errors on Unity to build and run for Silicon.

Hope this helps someone.