Fail to build correct Plugins for Unity

I follow the video in WWDC2022 to build plugins for unity, but the .tgz isn't correct, leads to 30+ errors in unity.

I installed the recommanded version(2020.3.33f1c1, only c1 is provided, no 2020.3.33f1 is availiable), still can't build correct .tgz.

And I found that the com.Apple.core.tgz in video is 400KB, but my .tgz is only 149KB, means the .tgz isn't correct? How can I build the correct .tgz, thx!

By the way, why don't apple just releases the correctly builded .tgz? it's really time-saving

I had a similar issue to you and having the exact version of Unity they state fixed my issue. I was able to get it from here, you just have to scroll down a little.

https://unity3d.com/get-unity/download/archive

The build.py script seems to look only for that specific version so having anything else doesn't work.

Once I ran buil.py with the correct version of Unity, I was able to import the plugins into a newer version of Unity without any errors. Just a note, I don't believe the file size discrepancy you mentioned is an issue as before and after I had the correct version of Unity my core file was 151kb.

By the way, why don't apple just releases the correctly builded .tgz? it's really time-saving

Because Apple refuses to do anything that makes sense, and rather waste their users time. Their ******** Git repo doesn't even work unless you have SPECIFIC versions of Xcode, NPM, Unity, etc., and they ONLY even mention the Unity version. What a joke. Apple continues to do nothing but piss me off

I think it can be built by modifying the Unity version in the source code file ProjectVersion.txt

For convenience, I build a copy and put it on Github https://github.com/liuyongjiesail/AppleUnityPlugins, which can be used directly.

Solved the crash problem of Apple's official website plugins when call GKLocalPlayer.Local.FetchItems()

Fail to build correct Plugins for Unity
 
 
Q