Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed plugin embedding build phase for macOS not being added on older versions of Unity #45

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Xaverix
Copy link

@Xaverix Xaverix commented Nov 27, 2024

On some older versions of Unity the pbxProject.GetUnityMainTargetGuid() for macOS build target returns empty string. In some places in code there is a ternary operator to address this (e.g. AppleBuild.cs line 176). The issue is fixed in newer versions of Unity.

This PR adds ternary operator in two places where the workaround was missing. Without that the "Embed Apple Plug-in Libraries" build phase was never added to the Xcode project and there was an Error Log in the Unity console. (Tested in Unity 2021.3.16f1)

DodgyTim pushed a commit to dodgy-ltd/apple-unityplugins that referenced this pull request Nov 29, 2024
apple#45)

New GameKit APIs for iOS/tvOS 18.0, macOS 15.0, and visionOS 2.0.
* `GKGameCenterViewController.initWithLeaderboardSetID` and `.initWithPlayer`
* `GKAccessPoint` new `Trigger*` methods.

Other changes:
* Add saved game APIs
* Add Unity Editor UI for setting the iCloud container used for saving games.
* Add saved game tests to the sample app.
* Add default leaderboard APIs.
* Add simpler availability queries by using C# reflection.
* Improve handling of API unavailable errors by throwing exceptions in C#.
* Add many availability annotations that were previously missing (allows running on iOS 13).
* Improve handling of nil player, leaderboard, and achievement images.
* Provide helpful explanations to developers via logging and sample app UI for certain GameKit exceptions and errors.
* Improve navigation in the sample app on tvOS when using the remote.
* Fix a bug that prevented paging of leaderboard entries.
* Refactor and improve handling of GameKitException and GKErrorCode. Simplify the way explanatory messages are delivered to the developer when errors occur.
* Set minimum OS targets to iOS/tvOS 13, macOS 10.15, and visionOS 1.0 to align with Apple Arcade.
* Add byte array initializer to NSData wrapper.
* Rename GKPlayer.FetchItems to FetchItemsForIdentityVerificationSignature. (But also keep shorter name for backwards-compatibility.)
* Fine tune the auth flow to better handle the user signing out and back in to Game Center in system settings.
* Improve the auth flow in the sample app and ensure exceptions are caught in the auth handler callbacks.
* Make GKAccessPoint.FrameInUnitCoordinates() unavailable on visionOS.
* Upgrade to Unity 2022.3.45f1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant