Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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

Discussion in 'macOS' started by Tautvydas-Zilys, Jul 10, 2020.

  1. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    This page contains known issues and workarounds related to running Unity and games made in Unity on Apple silicon hardware and/or macOS Big Sur operating system. Note that native Apple silicon support for the player was added in Unity 2020.2.0a21. We plan to release an alpha version of the editor that runs on Apple silicon hardware natively in Q2 2021.

    Unity player issues

    Known issue: macOS Apple silicon standalone player builds with Mono scripting backend crash shortly after launching them with this callstack:
    Code (csharp):
    1. * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    2.   * frame #0: 0x0000000196f1e748 libsystem_platform.dylib`_platform_memset_pattern16 + 296
    3.     frame #1: 0x00000001228ef448 libmonobdwgc-2.0.dylib`mono_arch_create_sdb_trampoline + 132
    4.     frame #2: 0x0000000122891254 libmonobdwgc-2.0.dylib`mini_get_breakpoint_trampoline + 80
    5.     frame #3: 0x00000001228e3c40 libmonobdwgc-2.0.dylib`mono_arch_init + 68
    6.     frame #4: 0x000000012280d378 libmonobdwgc-2.0.dylib`mini_init + 664
    7.     frame #5: 0x0000000100e845b4 UnityPlayer.dylib`InitializeMonoFromMain(dynamic_array<core::basic_string<char, core::StringStorageDefault<char> >, 0ul> const&, core::basic_string<char, core::StringStorageDefault<char> >, core::basic_string<char, core::StringStorageDefault<char> >, int, char const**, bool) + 1260
    8.     frame #6: 0x0000000100e901d8 UnityPlayer.dylib`LoadAndInitializeMono(dynamic_array<core::basic_string<char, core::StringStorageDefault<char> >, 0ul> const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> >, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char const**, bool (*)()) + 196
    9.     frame #7: 0x0000000101737ba4 UnityPlayer.dylib`LoadScriptingRuntime(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, int, char**) + 840
    10.     frame #8: 0x0000000101737f04 UnityPlayer.dylib`SetupUnityPlayer(int, char**) + 124
    11.     frame #9: 0x0000000101732368 UnityPlayer.dylib`-[PlayerAppDelegate applicationDidFinishLaunching:] + 568
    12.     frame #10: 0x0000000197075374 CoreFoundation`__CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28
    13.     frame #11: 0x000000019711469c CoreFoundation`___CFXRegistrationPost_block_invoke + 52
    14.     frame #12: 0x0000000197114608 CoreFoundation`_CFXRegistrationPost + 440
    15.     frame #13: 0x000000019704472c CoreFoundation`_CFXNotificationPost + 708
    16.     frame #14: 0x0000000197c2281c Foundation`-[NSNotificationCenter postNotificationName:object:userInfo:] + 64
    17.     frame #15: 0x0000000199891c24 AppKit`-[NSApplication _postDidFinishNotification] + 340
    18.     frame #16: 0x0000000199891948 AppKit`-[NSApplication _sendFinishLaunchingNotification] + 236
    19.     frame #17: 0x000000019988eafc AppKit`-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 580
    20.     frame #18: 0x000000019988e6fc AppKit`-[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 780
    21.     frame #19: 0x0000000197c4eed0 Foundation`-[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 344
    22.     frame #20: 0x0000000197c4ed08 Foundation`_NSAppleEventManagerGenericHandler + 96
    23.     frame #21: 0x000000019d142ca0 AE`___lldb_unnamed_symbol71$$AE + 1828
    24.     frame #22: 0x000000019d1424fc AE`___lldb_unnamed_symbol70$$AE + 44
    25.     frame #23: 0x000000019d13afb4 AE`aeProcessAppleEvent + 520
    26.     frame #24: 0x000000019f206a14 HIToolbox`AEProcessAppleEvent + 68
    27.     frame #25: 0x0000000199888a80 AppKit`_DPSNextEvent + 1664
    28.     frame #26: 0x0000000199887148 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1300
    29.     frame #27: 0x00000001998793d8 AppKit`-[NSApplication run] + 600
    30.     frame #28: 0x000000019984bb80 AppKit`NSApplicationMain + 1064
    31.     frame #29: 0x0000000101738e78 UnityPlayer.dylib`PlayerMain(int, char const**) + 1004
    32.     frame #30: 0x0000000196e7094c libdyld.dylib`start + 4
    Issue tracker: https://issuetracker.unity3d.com/is...pting-backend-crashes-on-macos-big-sur-beta-6
    Workaround: None at this time. Use IL2CPP scripting backend if you need your builds to run.
    Expected resolution: The issue is fixed in 2020.2.0b14 and 2021.1.0a5.

    Known issue: macOS Apple silicon standalone player non-development builds don't launch on Apple silicon hardware. You will be greeted with a dialog like this:
    upload_2020-9-16_16-49-48.png
    Workaround: This happens because non-development build binary signatures are corrupted. You can re-sign them yourself for now:
    Code (csharp):
    1. codesign -s - -f ./<buildname>.app/Contents/Frameworks/UnityPlayer.dylib
    2. codesign -s - -f ./<buildname>.app/Contents/Frameworks/GameAssembly.dylib // Only on IL2CPP scripting backend
    3. codesign -s - -f ./<buildname>.app/Contents/Frameworks/mono-2.0-bdwgc.dylib // Only on Mono scripting backend
    4. codesign -s - -f ./<buildname>.app/Contents/Frameworks/MonoPosixHelper.dylib // Only on Mono scripting backend
    5. codesign -s - -f ./<buildname>.app/Contents/MacOS/<gamename>
    Expected resolution: The issue is fixed in 2020.2.0b14 and 2021.1.0a9.
    Known issue: macOS Apple silicon standalone player builds don't launch on Apple silicon devkits running macOS Big Sur beta 6. You will be greeted with a dialog like this:
    upload_2020-9-16_16-49-48.png
    Workaround: This happens because Unity's binaries are not currently signed. You can sign them yourself for now:
    Code (csharp):
    1. codesign -s - -f ./<buildname>.app/Contents/Frameworks/UnityPlayer.dylib
    2. codesign -s - -f ./<buildname>.app/Contents/Frameworks/GameAssembly.dylib // This is only needed if you're using an older version of Xcode 12 beta. You don't need it if you use Xcode 12 beta 6 or newer.
    3. codesign -s - -f ./<buildname>.app/Contents/MacOS/<gamename>
    Expected resolution: This is fixed in 2020.2.0b5 for Apple silicon builds and in 2020.2.0b9 for universal builds.

    Unity editor issues

    Known issue: macOS Big Sur beta 10 and later hangs on Apple silicon hardware when using the Unity editor
    Issue tracker: https://issuetracker.unity3d.com/product/unity/issues/guid/1285304/
    Workaround: None at this time.
    Expected resolution: The fix landed to 2021.1.0a7, 2020.2.0b12, 2020.1.15f1, 2019.4.16f1 and 2018.4.30f1. Note that there have been initial reports that the fix is only functional on macOS 11.0 and not macOS 11.1 beta. The fix for macOS 11.1 landed to 2021.1.0b2, 2020.2.2f1 and 2019.4.18f1. Since the macOS 11.1 issue is only present when running on the DTK and not the retail hardware, we decided to not backport this fix to 2018.4.

    Known issue: Unity Hub doesn’t work on Apple silicon hardware
    Issue tracker: https://issuetracker.unity3d.com/product/unity/issues/guid/1261993/
    Expected resolution: This is fixed in the Unity Hub 2.4.0. You can download it from here: https://unity3d.com/get-unity/download

    Known issue: C# compiler crashes in Unity 2020.2 on Apple silicon hardware
    Issue tracker: https://issuetracker.unity3d.com/product/unity/issues/guid/1261978/
    Workaround: Use Unity 2020.1 or earlier.
    Expected resolution: This was fixed in Unity 2020.2.0a19.

    Known issue: Visual Studio for Mac and Visual Studio Code crash on startup on Apple silicon hardware.
    Workaround: Use a different code editor. Visual Studio Code has a beta with a fix: https://github.com/microsoft/vscode/issues/104780
    Expected resolution: Visual Studio for Mac crash was fixed in one of macOS Big Sur beta releases, and Visual Studio code has a beta with Apple silicon support.

    Known issue: Building Mac Standalone player with IL2CPP scripting backend fails if you're running macOS Big Sur
    Issue tracker: https://issuetracker.unity3d.com/product/unity/issues/guid/1259859/
    Workaround: None at this time.
    Expected resolution: This is fixed in 2020.2.0a18. We are in process of backporting the fix to all supported Unity releases.

    HDRP issues

    Known issue: Any existing HDRP package fails to initialize renderer properly under macOS 11.0 due to incorrect version number check.
    Workaround: While waiting for official package releases to update for 7.x and beyond, you can apply the fix yourself. The diff can be found at https://github.com/Unity-Technologies/Graphics/pull/1014
    Expected resolution: Updated HDRP packages will be rolling out in coming weeks.
     
    Last edited: Feb 24, 2021
  2. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    67
    THANK YOU!!! was coming out in cold sweats not being able to use it on the Apple Silicon Kit.

    Be prepared for Apple to break it though by Beta 4 ! lol

    No again thanks for fixing the Hub!!
     
    Tautvydas-Zilys likes this.
  3. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,041
    not running silicon by apple per se, but can confirm Hub beta works for me on Big Sur
    and IL2CPP build is OK on 2020.2.0 a18, too
     
  4. ScreenwaveMedia

    ScreenwaveMedia

    Joined:
    Jul 8, 2020
    Posts:
    15
    I see this is under Unity Player issues. I'm curious about the editor. Are there plans to compile the editor natively for Apple Silicon any time soon?

    I have been planning to hold off on the new Macs, possibly even switching to PC because I'm not overly comfortable with doing my main body of work via emulation (I don't mind a few programs but my main programs like Unity I want to be using natively). I'm excited to see what these new chips can do for Apple computers but running my daily driver software via emulation is a compromise I don't think I want to make.
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    We are working on porting the editor but it's a much bigger task than porting the player due to all the third party libraries the editor depends on. Due to that, we don't really know when it will be available yet.
     
  6. ScreenwaveMedia

    ScreenwaveMedia

    Joined:
    Jul 8, 2020
    Posts:
    15
    Understood. Thank you
     
  7. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    67
    Oh switching off Metal on Unity Editor crashes the Apple Silicon as I've just discovered this very min !

    so err do not switch of metal editor support folks
    2020.2.0a19
     
    ScreenwaveMedia likes this.
  8. ScreenwaveMedia

    ScreenwaveMedia

    Joined:
    Jul 8, 2020
    Posts:
    15
    Probably an option which which needs to be removed when running on Apple Silicon as stuff like OpenGL will not be supported.

    Say, as somebody using the test kit, how would you say Unity runs in general so far in Rosetta? Is it a major performance overhead or does it feel good enough to use daily?
     
  9. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    67
    it run's extremely well IMO, from past experience with Rosetta first time round with PPC to Intel this one is so much better. Still with lot's of issues but impressive non the less.

    Saying that Beta 5 Big Sur and Unity a19 freezes and hangs when plugged into a 4K monitor, this just smells like a typical Beta problem and not Unity- works fine when using my trusty 10 year old 1080p screen.
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    By the way, Unity 2020.2.0a21 came out with support for targeting Apple silicon natively with macOS Standalone Player. Please give it a whirl and let us know if you run into any issues!
     
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    We're going to make a change that forces Metal when running on Apple silicon.
     
    thestringer likes this.
  12. OneGiantPanda333

    OneGiantPanda333

    Joined:
    Dec 13, 2013
    Posts:
    7
    Unity: 2020.2a21
    Xcode: Version 12.0 beta (12A8158a)
    Mac OS: Big Sur 11.0

    I met an issue with Xcode Archive in Legacy Xcode Build System, which seems to be the default option of Unity generated Xcode project. Archive failed immediately with the error below. Then I switched to the New Build System, and made the Archive successfully.

    Code (CSharp):
    1. SetOwnerAndGroup username:staff /Users/username/Library/Developer/Xcode/DerivedData/appname-closjefepwcmnjcimoxvxbzbsqgk/Build/Intermediates.noindex/ArchiveIntermediates/appname/InstallationBuildProductsLocation/usr/local/lib/GameAssembly.dylib
    2.  
    3.     cd /Users/username/Documents/projectfolder/OSX
    4.  
    5.     /usr/sbin/chown -RH username:staff /Users/username/Library/Developer/Xcode/DerivedData/appname-closjefepwcmnjcimoxvxbzbsqgk/Build/Intermediates.noindex/ArchiveIntermediates/appname/InstallationBuildProductsLocation/usr/local/lib/GameAssembly.dylib
    6.  
    7. chown: /Users/username/Library/Developer/Xcode/DerivedData/appname-closjefepwcmnjcimoxvxbzbsqgk/Build/Intermediates.noindex/ArchiveIntermediates/appname/InstallationBuildProductsLocation/usr/local/lib/GameAssembly.dylib: No such file or directory
    8.  
    9. Command /usr/sbin/chown failed with exit code 1
     
    Last edited: Aug 22, 2020
  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    That's very interesting... Can you file a bug report with repro steps (and Xcode version, etc)? I was not able to reproduce it by just exporting Xcode project and building it.
     
  14. OneGiantPanda333

    OneGiantPanda333

    Joined:
    Dec 13, 2013
    Posts:
    7
    I will see if I can reproduce it consistently. If so, I will file the bug report.
     
  15. komocode

    komocode

    Joined:
    Jan 17, 2015
    Posts:
    2
    never mind.
     
    Last edited: Sep 6, 2020
  16. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    96
    Hello everyone! Does anybody know how to turn off the auto-update of Unity Hub? The installation of Unity Hub 2.4.0 beta 2 works splendidly. However, the moment I close the Unity Hub and start t again, it auto-updates to version 2.3.2, which does not work on Silicon.
     
  17. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    96
    Also, it appears Jobs/Burst/Collections package does not work on Apple Silicon presently. Installing the packages result in the errors shown below. Is this to be expected at the present moment?
     

    Attached Files:

  18. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    You should be able to disable auto updates. However, Unity Hub 2.4.0 came out of beta today so you should just upgrade to that.

    This is not expected. Can we have a bug report?
     
  19. dustinmerrell

    dustinmerrell

    Joined:
    Oct 6, 2014
    Posts:
    14
    Is there any way we can get Unity 2020.2b1 to see the Xcode 12 Beta? I am attempting to build a project but it says it cannot find Xcode.

    When I export to Intel 64 bit only I get a build error, linker command failed with exit code 1 clang
     
  20. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    Does it say it cannot find installed Xcode?

    Can you show the full error message?
     
  21. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    96
    I have just submitted the bug report. (Case 1276597)
     
  22. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    Do you specifically get these errors when targeting Apple silicon? That seems bizarre as they don't seem platform specific at all:

    Code (csharp):
    1. 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
    2. 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
    3. 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
    4. 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
    5. 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
     
  23. dustinmerrell

    dustinmerrell

    Joined:
    Oct 6, 2014
    Posts:
    14
    @Tautvydas-Zilys
    I have Xcode 11.7 installed and the beta 12, it shows that it is not installed. See attached images.

    Screen Shot 2020-09-10 at 1.58.03 PM.png 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:
    Code (CSharp):
    1.  
    2. Undefined symbols for architecture x86_64:
    3.  
    4.   "_getUnityPurchasingAppReceipt", referenced from:
    5.  
    6.       _iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8 in 132801B1DD6E49A11BCCB5DE9B17292B.o
    7.  
    8.     (maybe you meant: _iOSStoreBindings_getUnityPurchasingAppReceipt_m6A60BAEE03E897FA0A848C6D14E86BDBEBFBCAA8, _OSXStoreBindings_getUnityPurchasingAppReceipt_m702EC6E592BBF681A0A84538DFEA076459A6D702 )
    9.  
    10.   "_setUnityPurchasingCallback", referenced from:
    11.  
    12.       _iOSStoreBindings_setUnityPurchasingCallback_m429E495193487E2E7B489EAA4B851BF0F2CEAB2A in 132801B1DD6E49A11BCCB5DE9B17292B.o
    13.  
    14.     (maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_m1B9E77986F7FE52B0B0CBCAE86496D0FF4A5E7EB, _iOSStoreBindings_setUnityPurchasingCallback_m429E495193487E2E7B489EAA4B851BF0F2CEAB2A )
    15.  
    16.   "_unityPurchasingAddTransactionObserver", referenced from:
    17.  
    18.       _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074 in 132801B1DD6E49A11BCCB5DE9B17292B.o
    19.  
    20.     (maybe you meant: _iOSStoreBindings_unityPurchasingAddTransactionObserver_m8B19DC717DC475661FCC4AADC0B820575AC24074, _OSXStoreBindings_unityPurchasingAddTransactionObserver_mE966496A18B53467C15198051687E4075E74DD3C )
    21.  
    22.   "_unityPurchasingFinishTransaction", referenced from:
    23.  
    24.       _iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F in 132801B1DD6E49A11BCCB5DE9B17292B.o
    25.  
    26.     (maybe you meant: _OSXStoreBindings_unityPurchasingFinishTransaction_m145373244A1B58D5642E452D85C0ED21F9C07946, _iOSStoreBindings_unityPurchasingFinishTransaction_mD9D2C05357EF7ADC5F5343BB87CC13CBD751653F )
    27.  
    28.   "_unityPurchasingInterceptPromotionalPurchases", referenced from:
    29.  
    30.       _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C in 132801B1DD6E49A11BCCB5DE9B17292B.o
    31.  
    32.     (maybe you meant: _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m01F28E4125E6D167E625F57561DBE34AAB53CCEF, _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m8C670C20CE1B334EE3D60D07FF893511B3EF2D4C )
    33.  
    34.   "_unityPurchasingPurchase", referenced from:
    35.  
    36.       _iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 in 132801B1DD6E49A11BCCB5DE9B17292B.o
    37.  
    38.     (maybe you meant: _OSXStoreBindings_unityPurchasingPurchase_m934CC8567A5B2054950D231AAC29F221E18D7DD8, _iOSStoreBindings_unityPurchasingPurchase_mFD22E87273DE76B0601FA15BCEF88912A16DD4B0 )
    39.  
    40.   "_unityPurchasingRestoreTransactions", referenced from:
    41.  
    42.       _iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405 in 132801B1DD6E49A11BCCB5DE9B17292B.o
    43.  
    44.     (maybe you meant: _iOSStoreBindings_unityPurchasingRestoreTransactions_m9225BF72B53FE29D478C2A45308D70308597C405, _OSXStoreBindings_unityPurchasingRestoreTransactions_m80BB9063E4017D66A850FC9B5DF913D0AD9241C7 )
    45.  
    46.   "_unityPurchasingRetrieveProducts", referenced from:
    47.  
    48.       _iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518 in 132801B1DD6E49A11BCCB5DE9B17292B.o
    49.  
    50.     (maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m2A041EE0C0BC00F62F3A3FFA9F9E8ACFEB958518, _OSXStoreBindings_unityPurchasingRetrieveProducts_m762C673967DF6672FE9D65DEE647142F0601572B )
    51.  
    52. ld: symbol(s) not found for architecture x86_64
    53.  
    54.  
    55.  
    56.  
    57.  
    58.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (System.Collections.Generic.HashSet`1[T] objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) [0x001fb] in <505b9b0e43534b28a864100cdbaf2041>:0
    59.  
    60.   at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00275] in <505b9b0e43534b28a864100cdbaf2041>:0
    61.  
    62.   at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00001] in <505b9b0e43534b28a864100cdbaf2041>:0
    63.  
    64.   at il2cpp.Program.DoRun (System.String[] args, System.Collections.Generic.List`1[T] foundAssemblies) [0x005bc] in <74bf8ed2b18e4aa7983371dc2cede53a>:0
    65.  
    66.   at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00042] in <74bf8ed2b18e4aa7983371dc2cede53a>:0
    67.  
    68.   at il2cpp.Program.Main (System.String[] args) [0x00036] in <74bf8ed2b18e4aa7983371dc2cede53a>:0
    69.  
    70. rm: /Users/dustinmerrell/Library/Developer/Xcode/DerivedData/Kjos_IPS-dccghsljuvnutcggxuzlteytynrx/Build/Products/Debug//GameAssembly.map: No such file or directory
    71.  
    When I build it out of Unity 2020 and attempt to build it in Xcode 11.7 I get the following:
    Code (CSharp):
    1.  
    2. ld: warning: passed two min versions (10.11, 10.12) for platform macOS. Using 10.12.
    3.  
    4. Undefined symbols for architecture x86_64:
    5.  
    6.   "_getUnityPurchasingAppReceipt", referenced from:
    7.  
    8.       _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186 in 071ECACB41614EE8EC693DB8C63B8DE3.o
    9.  
    10.     (maybe you meant: _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186, _OSXStoreBindings_getUnityPurchasingAppReceipt_m3AA785D0D2B12B9BC9FCD08CBD3CC92FBEFD2804 )
    11.  
    12.   "_setUnityPurchasingCallback", referenced from:
    13.  
    14.       _iOSStoreBindings_setUnityPurchasingCallback_mB70E6B7FF1D6C8266EBD676BBA5F0AC69913C52D in 071ECACB41614EE8EC693DB8C63B8DE3.o
    15.  
    16.     (maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_m818C1B933A570F054F39C5CBC2D6CF801E2FA891, _iOSStoreBindings_setUnityPurchasingCallback_mB70E6B7FF1D6C8266EBD676BBA5F0AC69913C52D )
    17.  
    18.   "_unityPurchasingAddTransactionObserver", referenced from:
    19.  
    20.       _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69 in 071ECACB41614EE8EC693DB8C63B8DE3.o
    21.  
    22.     (maybe you meant: _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69, _OSXStoreBindings_unityPurchasingAddTransactionObserver_m2F6005CE1ABF9069D32BA4A8635B373B56A5C1B5 )
    23.  
    24.   "_unityPurchasingFinishTransaction", referenced from:
    25.  
    26.       _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA in 071ECACB41614EE8EC693DB8C63B8DE3.o
    27.  
    28.     (maybe you meant: _OSXStoreBindings_unityPurchasingFinishTransaction_mFBF266FD8B8DAAC3758AC32A65FB919D5A20E611, _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA )
    29.  
    30.   "_unityPurchasingInterceptPromotionalPurchases", referenced from:
    31.  
    32.       _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E in 071ECACB41614EE8EC693DB8C63B8DE3.o
    33.  
    34.     (maybe you meant: _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E, _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m9E32BEFD1AF983DFCEC5696760B5F6DB023096B8 )
    35.  
    36.   "_unityPurchasingPurchase", referenced from:
    37.  
    38.       _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525 in 071ECACB41614EE8EC693DB8C63B8DE3.o
    39.  
    40.     (maybe you meant: _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525, _OSXStoreBindings_unityPurchasingPurchase_mF69FCEF458047C49F2DC7E20D3A57D1780ECBA70 )
    41.  
    42.   "_unityPurchasingRestoreTransactions", referenced from:
    43.  
    44.       _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 in 071ECACB41614EE8EC693DB8C63B8DE3.o
    45.  
    46.     (maybe you meant: _OSXStoreBindings_unityPurchasingRestoreTransactions_m911F4AFE04F3EFEE15F9D9A731FF1335DC35F899, _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 )
    47.  
    48.   "_unityPurchasingRetrieveProducts", referenced from:
    49.  
    50.       _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE in 071ECACB41614EE8EC693DB8C63B8DE3.o
    51.  
    52.     (maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE, _OSXStoreBindings_unityPurchasingRetrieveProducts_m1FD0797EA2813172026165F1D60D3732CC5F69AC )
    53.  
    54. ld: symbol(s) not found for architecture x86_64
    55.  
    56. clang: error: linker command failed with exit code 1 (use -v to see invocation)
    57.  
    58.  
    59.  
    60.  
    61.  
    62.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (System.Collections.Generic.HashSet`1[T] objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) [0x00203] in <73bcdbc8774a4498bb2dcf33e7791123>:0
    63.  
    64.   at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x0025c] in <73bcdbc8774a4498bb2dcf33e7791123>:0
    65.  
    66.   at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <73bcdbc8774a4498bb2dcf33e7791123>:0
    67.  
    68.   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
    69.  
    70.   at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <5ede69b67db34445a8da21dbf9716bb3>:0
    71.  
    72.   at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <5ede69b67db34445a8da21dbf9716bb3>:0
    73.  
    74.   at il2cpp.Program.Main (System.String[] args) [0x00038] in <5ede69b67db34445a8da21dbf9716bb3>:0
    75.  
    76. Command /bin/sh failed with exit code 1
    77.  
    When I build it out of Unity 2020 and attempt to build it in Xcode 12 I get the following:
    Code (CSharp):
    1. Undefined symbols for architecture x86_64:
    2.   "_getUnityPurchasingAppReceipt", referenced from:
    3.       _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186 in A26BC6EDA46EF15AD0020C651E4BBE51.o
    4.      (maybe you meant: _iOSStoreBindings_getUnityPurchasingAppReceipt_m2BD2B3284EF83DE60BC376F5020528825F30A186, _OSXStoreBindings_getUnityPurchasingAppReceipt_m3AA785D0D2B12B9BC9FCD08CBD3CC92FBEFD2804 )
    5.   "_setUnityPurchasingCallback", referenced from:
    6.       _iOSStoreBindings_setUnityPurchasingCallback_mB70E6B7FF1D6C8266EBD676BBA5F0AC69913C52D in A26BC6EDA46EF15AD0020C651E4BBE51.o
    7.      (maybe you meant: _OSXStoreBindings_setUnityPurchasingCallback_m818C1B933A570F054F39C5CBC2D6CF801E2FA891, _iOSStoreBindings_setUnityPurchasingCallback_mB70E6B7FF1D6C8266EBD676BBA5F0AC69913C52D )
    8.   "_unityPurchasingAddTransactionObserver", referenced from:
    9.       _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69 in A26BC6EDA46EF15AD0020C651E4BBE51.o
    10.      (maybe you meant: _iOSStoreBindings_unityPurchasingAddTransactionObserver_mAA99CA31D4F516050D607872ACD8FCF15FE1CB69, _OSXStoreBindings_unityPurchasingAddTransactionObserver_m2F6005CE1ABF9069D32BA4A8635B373B56A5C1B5 )
    11.   "_unityPurchasingFinishTransaction", referenced from:
    12.       _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA in A26BC6EDA46EF15AD0020C651E4BBE51.o
    13.      (maybe you meant: _OSXStoreBindings_unityPurchasingFinishTransaction_mFBF266FD8B8DAAC3758AC32A65FB919D5A20E611, _iOSStoreBindings_unityPurchasingFinishTransaction_m6D0E5D4DFD0C0FD0822BBFE1AF3711C89B08E3EA )
    14.   "_unityPurchasingInterceptPromotionalPurchases", referenced from:
    15.       _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E in A26BC6EDA46EF15AD0020C651E4BBE51.o
    16.      (maybe you meant: _iOSStoreBindings_unityPurchasingInterceptPromotionalPurchases_m2C15460795334A62B99A4EB854B428C98136B25E, _OSXStoreBindings_unityPurchasingInterceptPromotionalPurchases_m9E32BEFD1AF983DFCEC5696760B5F6DB023096B8 )
    17.   "_unityPurchasingPurchase", referenced from:
    18.       _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525 in A26BC6EDA46EF15AD0020C651E4BBE51.o
    19.      (maybe you meant: _iOSStoreBindings_unityPurchasingPurchase_m3BAD5CD75936E68A074C80C07A896EB3811C4525, _OSXStoreBindings_unityPurchasingPurchase_mF69FCEF458047C49F2DC7E20D3A57D1780ECBA70 )
    20.   "_unityPurchasingRestoreTransactions", referenced from:
    21.       _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 in A26BC6EDA46EF15AD0020C651E4BBE51.o
    22.      (maybe you meant: _OSXStoreBindings_unityPurchasingRestoreTransactions_m911F4AFE04F3EFEE15F9D9A731FF1335DC35F899, _iOSStoreBindings_unityPurchasingRestoreTransactions_mE3B35DBE61FBB3AF62610463C5C110725F449883 )
    23.   "_unityPurchasingRetrieveProducts", referenced from:
    24.       _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE in A26BC6EDA46EF15AD0020C651E4BBE51.o
    25.      (maybe you meant: _iOSStoreBindings_unityPurchasingRetrieveProducts_m3EE341829665572BD1C88555A40823A52CBAE9DE, _OSXStoreBindings_unityPurchasingRetrieveProducts_m1FD0797EA2813172026165F1D60D3732CC5F69AC )
    26. ld: symbol(s) not found for architecture x86_64
    27. clang: error: linker command failed with exit code 1 (use -v to see invocation)
    28.  
    29.  
    30.   at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles (System.Collections.Generic.HashSet`1[T] objectFiles, Unity.IL2CPP.Building.ToolChains.CppToolChainContext toolChainContext) [0x00203] in <73bcdbc8774a4498bb2dcf33e7791123>:0
    31.   at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x0025c] in <73bcdbc8774a4498bb2dcf33e7791123>:0
    32.   at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <73bcdbc8774a4498bb2dcf33e7791123>:0
    33.   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
    34.   at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <5ede69b67db34445a8da21dbf9716bb3>:0
    35.   at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <5ede69b67db34445a8da21dbf9716bb3>:0
    36.   at il2cpp.Program.Main (System.String[] args) [0x00038] in <5ede69b67db34445a8da21dbf9716bb3>:0
    37. Command /bin/sh failed with exit code 1
     
    Last edited: Sep 10, 2020
  24. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    The errors you showed are unrelated to Apple silicon. You're running into this: https://forum.unity.com/threads/com...-21-unity-2018-2-0f2-il2cpp-for-macos.547951/

    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:

    Code (csharp):
    1. sudo Xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
     
  25. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    96
    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


    Screenshot 2020-09-11 at 10.41.00 PM.png
     
    Last edited: Sep 11, 2020
  26. dustinmerrell

    dustinmerrell

    Joined:
    Oct 6, 2014
    Posts:
    14
    @Tautvydas-Zilys I added your workaround but now I get a different message.

    Code (CSharp):
    1. /Users/dustinmerrell/Library/Developer/Xcode/DerivedData/Kjos_IPS-dccghsljuvnutcggxuzlteytynrx/Build/Products/Debug/KJOS IPS.app: code object is not signed at all
    2. In subcomponent: /Users/dustinmerrell/Library/Developer/Xcode/DerivedData/Kjos_IPS-dccghsljuvnutcggxuzlteytynrx/Build/Products/Debug/KJOS IPS.app/Contents/PlugIns/unitypurchasing.bundle
    3. 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.
     
  27. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    I believe you're running into this: https://forum.unity.com/threads/mac...cts-2019-4-8-change-is-not-sufficient.966704/

    The simplest workaround would be to disable Xcode project generation it seems.
     
  28. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    Are you saying you're seeing different available packages in the package manager UI on a brand new project on Windows vs Mac editor?
     
  29. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    96
  30. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    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.
     
  31. FIFTYTWO

    FIFTYTWO

    Joined:
    Oct 21, 2014
    Posts:
    42
    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:

    Code (CSharp):
    1. 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"
    2. /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/build/deploy/net471/UnityLinker.exe exited after 3492 ms.
    3. 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"
    4. /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/build/BeeSettings/offline/bee.exe exited after 10697 ms.
    5. Failed running /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/build/BeeSettings/offline/bee.exe --useprebuiltbuildprogram
    6.  
    7. stdout:
    8. [     ] Require frontend run.  tundra.dag no longer valid. FileSignature timestamp changed: il2cpp_settings.json
    9. [        0s] Executed build program. Created build graph with 2 nodes.
    10. [   0s] Freezing tundra.dag.json into .dag (.dag file didn't exist)
    11. [BUSY 6s] Il2Cpp /Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/Native/GameAssembly.dylib
    12. [0/2 10s] Il2Cpp /Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/Native/GameAssembly.dylib
    13. ##### CommandLine
    14. "/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"
    15. ##### ExitCode
    16. 1
    17. ##### Output
    18. Running il2cpp.exe in workstation GC mode.
    19. Building GameAssembly.dylib with ClangToolChain
    20.    Mac Dev SDK: /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
    21.  
    22.    Output directory: /Users/dmitry/projects/Temp/TestAppleSilicon/Library/Il2cppBuildCache/macOS/ARM64/Native
    23.    Cache directory: /Users/dmitry/projects/Temp/TestAppleSilicon/Library/macOS/ARM64/il2cpp_cache
    24. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException:
    25.  
    26. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    27. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    28. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    29. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    30. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:32:
    31. /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
    32. #error Unsupported architecture
    33. ^
    34. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    35. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    36. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    37. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    38. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
    39. /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
    40. #error architecture not supported
    41. ^
    42. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    43. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    44. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    45. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    46. /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'
    47. typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
    48.         ^
    49. /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'?
    50. typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
    51.         ^
    52. note: '__int128_t' declared here
    53. /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'?
    54. typedef __int32_t       __darwin_dev_t;         /* dev_t */
    55.         ^
    56. note: '__int128_t' declared here
    57. /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'?
    58. typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
    59.         ^
    60. note: '__uint128_t' declared here
    61. /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'?
    62. typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
    63.         ^
    64. note: '__uint128_t' declared here
    65. /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'
    66. typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
    67.         ^
    68. /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'
    69. typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
    70.         ^
    71. /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'?
    72. typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
    73.         ^
    74. note: '__uint128_t' declared here
    75. /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'
    76. typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
    77.         ^
    78. /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'?
    79. typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
    80.         ^
    81. note: '__int128_t' declared here
    82. /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'?
    83. typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
    84.         ^
    85. note: '__uint128_t' declared here
    86. /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'?
    87. typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
    88.         ^
    89. note: '__int128_t' declared here
    90. /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'?
    91. typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
    92.         ^
    93. note: '__uint128_t' declared here
    94. /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'?
    95. typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
    96.         ^
    97. note: '__uint128_t' declared here
    98. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    99. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    100. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    101. /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'?
    102. typedef __uint32_t      __darwin_wctype_t;
    103.         ^
    104. note: '__uint128_t' declared here
    105. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    106. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    107. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:64:
    108. /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'
    109. typedef __darwin_size_t        size_t;
    110.         ^
    111. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    112. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    113. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:141:
    114. 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:
    115. /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
    116. #error architecture not supported
    117. ^
    118. fatal error: too many errors emitted, stopping now [-ferror-limit=]
    119. 20 errors generated.
    120.  
    121.  
    122. Invocation was: Executable: /usr/bin/clang
    123. 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"
    124.  
    125.   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
    126.   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
    127.   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
    128.   at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x000a6] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
    129.   at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
    130.   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
    131.   at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    132.   at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    133.   at il2cpp.Program.Main (System.String[] args) [0x00000] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    134.  
    135. Unhandled Exception:
    136. Unity.IL2CPP.Building.BuilderFailedException:
    137.  
    138. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    139. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    140. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    141. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    142. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:32:
    143. /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
    144. #error Unsupported architecture
    145. ^
    146. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    147. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    148. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    149. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    150. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
    151. /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
    152. #error architecture not supported
    153. ^
    154. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    155. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    156. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    157. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    158. /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'
    159. typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
    160.         ^
    161. /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'?
    162. typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
    163.         ^
    164. note: '__int128_t' declared here
    165. /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'?
    166. typedef __int32_t       __darwin_dev_t;         /* dev_t */
    167.         ^
    168. note: '__int128_t' declared here
    169. /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'?
    170. typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
    171.         ^
    172. note: '__uint128_t' declared here
    173. /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'?
    174. typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
    175.         ^
    176. note: '__uint128_t' declared here
    177. /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'
    178. typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
    179.         ^
    180. /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'
    181. typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
    182.         ^
    183. /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'?
    184. typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
    185.         ^
    186. note: '__uint128_t' declared here
    187. /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'
    188. typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
    189.         ^
    190. /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'?
    191. typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
    192.         ^
    193. note: '__int128_t' declared here
    194. /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'?
    195. typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
    196.         ^
    197. note: '__uint128_t' declared here
    198. /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'?
    199. typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
    200.         ^
    201. note: '__int128_t' declared here
    202. /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'?
    203. typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
    204.         ^
    205. note: '__uint128_t' declared here
    206. /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'?
    207. typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
    208.         ^
    209. note: '__uint128_t' declared here
    210. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    211. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    212. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    213. /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'?
    214. typedef __uint32_t      __darwin_wctype_t;
    215.         ^
    216. note: '__uint128_t' declared here
    217. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    218. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    219. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:64:
    220. /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'
    221. typedef __darwin_size_t        size_t;
    222.         ^
    223. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    224. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    225. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:141:
    226. 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:
    227. /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
    228. #error architecture not supported
    229. ^
    230. fatal error: too many errors emitted, stopping now [-ferror-limit=]
    231. 20 errors generated.
    232.  
    233.  
    234. Invocation was: Executable: /usr/bin/clang
    235. 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"
    236.  
    237.   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
    238.   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
    239.   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
    240.   at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x000a6] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
    241.   at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
    242.   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
    243.   at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    244.   at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    245.   at il2cpp.Program.Main (System.String[] args) [0x00038] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    246. [ERROR] FATAL UNHANDLED EXCEPTION: Unity.IL2CPP.Building.BuilderFailedException:
    247.  
    248. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    249. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    250. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    251. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    252. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:32:
    253. /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
    254. #error Unsupported architecture
    255. ^
    256. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    257. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    258. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    259. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    260. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
    261. /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
    262. #error architecture not supported
    263. ^
    264. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    265. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    266. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    267. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
    268. /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'
    269. typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
    270.         ^
    271. /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'?
    272. typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
    273.         ^
    274. note: '__int128_t' declared here
    275. /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'?
    276. typedef __int32_t       __darwin_dev_t;         /* dev_t */
    277.         ^
    278. note: '__int128_t' declared here
    279. /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'?
    280. typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
    281.         ^
    282. note: '__uint128_t' declared here
    283. /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'?
    284. typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
    285.         ^
    286. note: '__uint128_t' declared here
    287. /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'
    288. typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
    289.         ^
    290. /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'
    291. typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
    292.         ^
    293. /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'?
    294. typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
    295.         ^
    296. note: '__uint128_t' declared here
    297. /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'
    298. typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
    299.         ^
    300. /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'?
    301. typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
    302.         ^
    303. note: '__int128_t' declared here
    304. /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'?
    305. typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
    306.         ^
    307. note: '__uint128_t' declared here
    308. /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'?
    309. typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
    310.         ^
    311. note: '__int128_t' declared here
    312. /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'?
    313. typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
    314.         ^
    315. note: '__uint128_t' declared here
    316. /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'?
    317. typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
    318.         ^
    319. note: '__uint128_t' declared here
    320. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    321. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    322. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:61:
    323. /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'?
    324. typedef __uint32_t      __darwin_wctype_t;
    325.         ^
    326. note: '__uint128_t' declared here
    327. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    328. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    329. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:64:
    330. /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'
    331. typedef __darwin_size_t        size_t;
    332.         ^
    333. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/pch/pch-c.h:3:
    334. In file included from /Applications/Unity/Hub/Editor/2020.2.0b2/Unity.app/Contents/il2cpp/libil2cpp/il2cpp-config.h:3:
    335. In file included from /Applications/Xcode-12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h:141:
    336. 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:
    337. /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
    338. #error architecture not supported
    339. ^
    340. fatal error: too many errors emitted, stopping now [-ferror-limit=]
    341. 20 errors generated.
    342.  
    343.  
    344. Invocation was: Executable: /usr/bin/clang
    345. 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"
    346.  
    347.   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
    348.   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
    349.   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
    350.   at Unity.IL2CPP.Building.CppProgramBuilder.Build (Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x000a6] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
    351.   at Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner (Unity.IL2CPP.Building.CppProgramBuilder builder, Unity.IL2CPP.Building.Statistics.IBuildStatistics& statistics) [0x00000] in <7b833b3e9e804dcbadad2a8e9bdb1663>:0
    352.   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
    353.   at il2cpp.Program.DoRun (System.String[] args, Unity.IL2CPP.Common.RuntimePlatform platform, Unity.IL2CPP.Building.BuildingOptions buildingOptions) [0x0001f] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    354.   at il2cpp.Program.Run (System.String[] args, System.Boolean setInvariantCulture) [0x00063] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    355.   at il2cpp.Program.Main (System.String[] args) [0x00038] in <82f42e0552594ab5bca6e6cfcd9b9a43>:0
    356. *** Bee build failed (10.10 seconds), 1 items updated, 2 evaluated
     
  32. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    Which Xcode 12 beta did you download?
     
  33. FIFTYTWO

    FIFTYTWO

    Joined:
    Oct 21, 2014
    Posts:
    42
    Last edited: Sep 20, 2020
  34. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    FIFTYTWO likes this.
  35. FIFTYTWO

    FIFTYTWO

    Joined:
    Oct 21, 2014
    Posts:
    42
  36. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    67
    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)
     
  37. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    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?
     
  38. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    67
    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
     
  39. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    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.
     
    thestringer likes this.
  40. thestringer

    thestringer

    Joined:
    Aug 7, 2014
    Posts:
    67
    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.
     
  41. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    That $MONO in the Xcode project will be fixed in Unity 2020.2.0b8.
     
    thestringer likes this.
  42. ScottyB

    ScottyB

    Joined:
    Apr 4, 2011
    Posts:
    141
    Hi @Tautvydas-Zilys, how would someone set the Mac Architecture to Apple Silicon from code? I need this for batch mode builds and searching through Intellisense has failed me.
     
  43. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    Code (csharp):
    1. #if UNITY_2020_2_OR_NEWER && UNITY_STANDALONE_OSX
    2. using UnityEditor.OSXStandalone;
    3. #endif
    4.  
    5. ....
    6.  
    7. #if UNITY_2020_2_OR_NEWER && UNITY_STANDALONE_OSX
    8. void SetMacArchitecture(MacOSArchitecture architecture)
    9. {
    10.     UserBuildSettings.architecture = architecture;
    11. }
    12. #endif
     
  44. HipsterWhaleRob

    HipsterWhaleRob

    Joined:
    May 16, 2019
    Posts:
    1
    Hey, I had the same issue, but managed to get it going by renaming Xcode-beta.app to Xcode.app (renaming my Xcode.app prior).
     
  45. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    96
    Hi! I just updated to Big Sur 11 beta 10 from beta 9. Unity now freezes after loading, or after entering play mode. The entire DTK appears to be frozen as well, with no input from the keyboard and mouse registering.
    I proceeded to try the ESC-ALT-COMMAND shortcut to open the force quit application window and nothing happened. However, after unplugging my HDMI cable and replugging it back to the DTK, I could then see the force quit application window on the screen. Force quitting Unity from there resolves any unresponsive/freezing on the DTK.
    I would like to add that this issue did not occur in big sur beta 9. What can I do? If this a Unity's issue or? Thank you so very much for helping!


    EDIT: Posted this issue on Apple's universal app quick start developer forum and met with another user with the same exact issue. This user has made a bug report with ID: 1285304

    Subsequently, we are also met with the following error:
    [Package Manager Window] Error searching for packages.
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:327)
     
    Last edited: Oct 16, 2020
    thestringer likes this.
  46. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    Thanks! Yeah this issue was being discussed here: https://forum.unity.com/threads/mac...20-2-0b6-freezing-screen.988352/#post-6424331
     
    Klausology likes this.
  47. Klausology

    Klausology

    Joined:
    Aug 29, 2017
    Posts:
    96
    thestringer likes this.
  48. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    The Mono scripting backend fixes landed to 2020.2.0b12.
     
  49. sergioabril

    sergioabril

    Joined:
    Jan 11, 2016
    Posts:
    19
    Nice, what's the ETA?

    I'm testing sending signed binaries to the Mac App Store for validation, and those built with Mono scripting backend are accepted, but those built with IL2CPP return multiple automatic signature error and are rejected. Problem is, the ones built with Mono, don't run on macOS Big Sur.

    Is there anything different to do while signing IL2CPP binaries? Otherwise, I guess I just need the Mono scripting backend fix
     
  50. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    8,356
    Should be out in a little bit over a week. We ship beta builds once a week.

    What kind of errors are you seeing?
     
    sergioabril likes this.
unityunity