Post

Replies

Boosts

Views

Activity

Reply to Do I need a privacy manifest when using UserDefaults and CloudKit in my app?
I didn't realize that User Defaults contained anything other than the data I write to it. Isn't it strange that Apple chose to add this peculiar "required reason" thing, rather than just fixing NSUserDefaults to do what you and I always thought it did? Maybe it's time to reconsider using UserDefaults at all. Yes, this. The only essential feature of NSUserDefaults is when you implement a Settings.bundle to make your settings appear in the Settings app. (Which, bizarrely, is not covered by any of the reason codes - so you have to lie in your privacy manifest if you use that.) Otherwise, just store your data in the filesystem and avoid all this agro.
Sep ’24
Reply to UnsafeMutablePointer direct exposure.
I directly want to use them in c++ as swift::UnsafeMutablePointer. Why? If it's not true what documentation mean, then what is the manifestation for exposing these UnsafeMutablePointer? We’ve already answered that, it’s just T* I guess you could write: namespace swift { template <typename T> using UnsafeMutablePointer = T*; };
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’24
Reply to How to Upload Achievement Icon Image? (App Store Connect API)
Although it's not listed on that page, I'm fairly sure that these image uploads will also work as described in your second link. If you explore the docs starting from your first link (i.e. GameCenterAchievementImageResponse -> GameCenterAchievementImage -> GameCenterAchievementImage.Attributes -> uploadOperations), you'll get to "Upload instructions for assets such as app previews and app screenshots". Use this as described in your second link, under "Upload the Asset", to perform the actual upload.
Sep ’24
Reply to What is the reason for the CLLocationmanager.locationServicesEnabled() "invoked on main thread" warning?
didChangeAuthorizationStatus ... is not called when I turn location services on and off That surprised me, so I looked at my code, and at the docs. There seem to be two CLLocationManagerDelegate methods, locationManagerDidChangeAuthorization: and locationManager: didChangeAuthorizationStatus:. The latter is deprecated and only briefly documented. The former is specifically documented to be called when the global location services setting is changed by the user: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/locationmanagerdidchangeauthorization(_:)?language=objc Events that Cause Authorization Status Changes ... Turn location services on or off globally in Settings > Privacy > Location Services. So... which of those methods have you implemented? And are you sure that it's not called for you? If so, "file a bug" ha ha ha.
Sep ’24