Hi, to anyone faces this error. I found a workaround to solve this problem.
First off, there is a commit fix for the finding asset ".framework" if you are using unity 2022. https://github.com/makeplayhappy/appleunityplugins/blob/find_framework_fix/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleFrameworkUtility.cs
If you are still facing this issue then follow these steps: (Please check the images)
1: Check the Apple.Core and Apple.Gamekit under Packages folder if they are empty in unity editor while in Finder/Explorer view there is a framework folders in them.
2: When you build to xcode from Unity Editor. Check the build logs, the empty path warning library printed as normal log. If you see it shows it cannot find the library path then go to next step.
3: If they are empty do this:
Open in Finder/Explorer and copy the "iOS" folder. Make sure you see under iOS folder contains the ".framework" file.
Copy it and paste it into the unity editor. For me I paste it under the Apple.Core folder under Assets folder (not in the Apple.Core folder under the Package folder)
Then try to build to xcode again. Check the build log carefully. It contains every informations we need to track. If it says it found the library. My solution is worked.
Hope this help you guys.
Long Chau.