Post

Replies

Boosts

Views

Activity

Xcode builds create cruft in /private/var/folders/
I've got a Mac Mini running as a CI/CD server; it's a game project, and every time we push a change to the repo, the server creates a build & uploads it to TestFlight. I've noticed that after running the server for around a week or so, the main drive is getting filled to the point of the machine becoming unresponsive (and our builds failing). After some investigation, I've determined that /private/var/folders/ is getting filled up with... something, related to the Xcode build/archive. It seems like we absolutely do not need this information, so I've periodically run rm -rf /private/var/folders/* to clean it out – some folders are permission-protected, but regardless, I'm able to recover >100GB with this method. Although this workaround does suffice, I'm just wondering what kinds of files Xcode is creating here, and whether there's a cleaner/best-practice method to remove them.
0
1
1.2k
Sep ’23
GKGameCenterViewController does not get disposed
Hi, I'm using the Unity plugins to access Game Center; there's a button in our UI that I want to use to open the Game Center dashboard on a particular leaderboard. The code for that is as follows, adapted from the GameKitSample.cs file: var leaderboard = leaderboards.First(l => l.BaseLeaderboardId == MY_LEADER_ID); var gameCenter = GKGameCenterViewController.Init(leaderboard, GKLeaderboard.PlayerScope.Global, GKLeaderboard.TimeScope.AllTime); await gameCenter.Present(); // game never returns from here Debug.Log("Back from Present()..."); gameCenter.Dispose(); I can play the game, hit the button, and view the Game Center dashboard, opened to the given leaderboard as expected. However, when I quit the dashboard (hitting the X in the top-right corner), the dashboard fades out, but the game is now unresponsive. I did notice that elsewhere in GameKitSample.cs, we have the following: var match = await GKMatchmakerViewController.Request(request); match.Delegate.DidFailWithError += OnRealtimeMatchDidFailWithError; Digging around for help with GKGameCenterViewController, I did notice that most solutions involve giving the viewcontroller a callback, but in the Unity plugin I see no Delegate listed for GKGameCenterViewController. Is this class missing the delegate, & therefore missing the callback that would dispose of the view?
6
1
2.2k
Jun ’23
How to install a legacy iOS on an iPad Mini 4
I'm currently developing a game across all Apple platforms (iOS, macOS, & tvOS). External QA found an issue where one of our libraries does not work on iOS 13 devices; however, all my in-house devices are iOS 14 or later. Is there a way or a best practice to install a much older version of iOS on an iPad Mini 4? I know some images are hosted at IPSW dot me; but those require jailbreaking the device. There are also some images hosted on the Apple developer portal here, but they don't go far enough back to cover iOS 13; likewise, I cannot find iOS 13 listed in the full downloads listing. Is there really no (acceptable, legal) way for developers to install an older version of iOS on a device for testing? I've seen other threads asking the question, but no real acceptable answers...
0
0
851
Feb ’23
Recurring leaderboards tied to month start/end
So according to this doc, recurring leaderboards have the following limitations: Leaderboards have a minimum recurrence of five minutes, a maximum recurrence of 30 days, and are not allowed to overlap. Accordingly, when configuring our leaderboard, we can only set "Duration" & "Restarts Every..." values in terms of minutes/hours/days. Is there no way to get a monthly leaderboard that lines up with the start & end of each individual month? As in, 31 days in January, 28/29 in February, &c. &c.? Given the information above, I assume the only way would be to somehow... automate the process of reconfiguring the leaderboard's duration "on the fly" to match the current month, but I'm not even sure if that's possible when the boards are Live. Has anyone gotten their leaderboards to recur once every calendar month (matching variable number of days)? If so, how?
0
2
1.1k
Jul ’22
Creating combined Leaderboards
Both the App Store Connect Help page and the Game Center Programming Guide reference "combined" leaderboards, which can be a sort of filter built of multiple independent leaderboards. However, I can't find any documentation on how to actually create & configure combined leaderboards. I've created several individual leaderboards in our project, with identical unit types & sort options, but I've never seen the option to set up a new leaderboard as a combined one.
0
0
1.2k
Jul ’22