So I have been using iCloud in my app, just about from the launch of the iCloud API, many years back.I'm doing an update of my app now, and I noticed that my iCloud functionality is broken.Scanning for local documents, gives me a whole bunch of iCloud documents.Yet, if I want to open one, I find that the file is actually not there, according to NSFileManager./private/var/mobile/Library/Mobile%20Documents/APPID~com~steenriver~tlctc/Documents/ is where I used to load these documents from.But now, the files are no longer there, even though they were found in the NSDocumentDirectory.Did NSDocumentDirectory change sometime in the past?Tanks,BramPS: It pains me that I, as an early adopter, now get hit by this.
Post
Replies
Boosts
Views
Activity
So, GKVoiceChatService has been deprecated, as shown here:https://developer.apple.com/documentation/gamekit/gkvoicechatserviceBut it does not specify a replacement for it.Was Voice Chat just dropped from iOS features, and never brought back?
There used to be an optional Xcode tool for profiling OpenGL.You could download it as "Graphics Tools for Xcode."Unfortunately, the last release for that was in 2015, for XCode 7.2Have OpenGL graphic tools been deprecated, and only Metal tools are available now?
Does anyone know what NSPersistentUIWindowSnapshotter is for?
I am seeing stutters in my frame rate, and it coincides with high CPU usage in that class.
I have not been able to find any documentation on it.
Is there a way to opt out of these snapshots?
Also: I tried to attach a screenshot of Instruments highlighting the issue, but I don't seem to be able to add images to forum posts?
CompileMetalFile fails for me:
metal: error: invalid Darwin version number: macos11.0
metal: error: invalid version number in '--target=air64-apple-macos11.0'
Metal doesn't like macOS version number 11?
When I run an Instruments "Metal" Profile, I see measurements for "Driver Processing."
Sub-statistics are "Unwire Memory" and "Wire Memory."
What are these activities?
The in-app help documentation does not explain these, nor other Metal related profiling.
The docs just cover things like memory / disk / network / energy stats.
Version 12.0 (12A8158a)
In my ObjectiveC-based macOS app, I set the GKLocalPlayer authentication handler:
	 GKLocalPlayer* player = [ GKLocalPlayer localPlayer ];
	 player.authenticateHandler = ^(NSViewController * _Nonnull viewController, NSError *error)
{
				....
And when I do this, I get a large spew of what seems a call stack printed on the app log?
["$s7Combine10PublishersO12HandleEventsV5Inner33_9464E9048FC4C9C669F954B681B5AD45LLC6cancelyyF +84", "$s7Combine10PublishersO12HandleEventsV5Inner33_9464E9048FC4C9C669F954B681B5AD45LLCy_x_qdGAA11CancellableA2aJP6cancelyyFTW +24", "$s7Combine10PublishersO7FlatMapV5Outer33_E91C3F00A6DFAAFEA2009FAF507AE039LLC6cancelyyF +944", "$s7Combine10PublishersO7FlatMapV5Outer33_E91C3F00A6DFAAFEA2009FAF507AE039LLCy_xqqdGAA11CancellableA2aJP6cancelyyFTW +24", "$s7Combine14ReduceProducerC7receiveyAA11SubscribersO6DemandVq_F +1100", "$s7Combine14ReduceProducerCyxq_q0_q1_q2_GAA10SubscriberA2aEP7receiveyAA11SubscribersO6DemandV5InputQzFTW +24", "$s7Combine10PublishersO7FlatMapV5Outer33_E91C3F00A6DFAAFEA2009FAF507AE039LLC12receiveInneryAA11SubscribersO6DemandV6OutputQz_SitF +336", "$s7Combine10PublishersO7FlatMapV5Outer33_E91C3F00A6DFAAFEA2009FAF507AE039LLC4SideV7receiveyAA11SubscribersO6DemandV6OutputQzF +24", "$s7Combine10PublishersO8SequenceV5Inner33_8116E0FA2B2A13BBC974430F9C6D956ELLC7requestyyAA11SubscribersO6DemandVF +2000", "$s7Combine10PublishersO8SequenceV5Inner33_8116E0FA2B2A13BBC974430F9C6D956ELLCy_xqqdqd_0_qd_1_GAA12SubscriptionA2aJP7requestyyAA11SubscribersO6DemandVFTW +24", "$s7Combine10PublishersO7FlatMapV5Outer33_E91C3F00A6DFAAFEA2009FAF507AE039LLC12receiveInner12subscription_yAA12Subscription_p_SitF +264", "$s7Combine10PublishersO7FlatMapV5Outer33_E91C3F00A6DFAAFEA2009FAF507AE039LLC4SideV7receive12subscriptionyAA12Subscription_p_tF +24", "$s7Combine10PublishersO8SequenceV7receive10subscriberyqd_t7FailureQydRs_AA10SubscriberRd5InputQyd7ElementRtzlF +948", "$s7Combine9PublisherPAAE9subscribeyyqdAA10SubscriberRd7FailureQydAFRtz5InputQyd6OutputRtzlF +1012", "$s7Combine10PublishersO7FlatMapV5Outer33_E91C3F00A6DFAAFEA2009FAF507AE039LLC7receiveyAA11SubscribersO6DemandV6OutputQy_F +428", "$s7Combine10PublishersO7FlatMapV5Outer33_E91C3F00A6DFAAFEA2009FAF507AE039LLCy_xqqdGAA10SubscriberA2aJP7receiveyAA11SubscribersO6DemandV5InputQzFTW +24", "$s7Combine10PublishersO12HandleEventsV5Inner33_9464E9048FC4C9C669F954B681B5AD45LLC7receiveyAA11SubscribersO6DemandV6OutputQzF +160", "$s7Combine10PublishersO12HandleEventsV5Inner33_9464E9048FC4C9C669F954B681B5AD45LLCy_x_qdGAA10SubscriberA2aJP7receiveyAA11SubscribersO6DemandV5InputQzFTW +24", "$s7Combine6FutureC7Conduit33_3AE68DE9BADC00342FC052FEBC7D3BA6LLC7fulfillyys6ResultOyxq_GF +1232", "$s7Combine6FutureC7Conduit33_3AE68DE9BADC00342FC052FEBC7D3BA6LLC5offeryyxF +240", "$s7Combine6FutureC7promise33_3AE68DE9BADC00342FC052FEBC7D3BA6LLyys6ResultOyxq_GFyAA11ConduitBaseCyxq_GXEfU_TA +48", "$s7Combine11ConduitListO7forEachyyyAA0B4BaseCyxq_GKXEKF +244", "$s7Combine6FutureC7promise33_3AE68DE9BADC00342FC052FEBC7D3BA6LLyys6ResultOyxq_GF +776", "$s7Combine6FutureCyACyxq_Gyys6ResultOyxq_GcccfcyAGcfU_TA +28", "keypath_get_selector_showHighlights +5200", "block_destroy_helper.57 +1108", "block_destroy_helper.57 +14256", "block_destroy_helper.57 +14792", "65+[GKLeaderboard loadHighlightsWithPlayerScope:timeScope:handler:]_block_invoke_2 +348", "93-[GKLeaderboard loadEntriesWithGameDescriptor:playerScope:timeScope:range:completionHandler:]_block_invoke.269 +208", "39-[GKDispatchGroup notifyOnQueue:block:]_block_invoke.58 +36", "_dispatch_call_block_and_release +32", "_dispatch_client_callout +20", "_dispatch_main_queue_callback_4CF +1024", "CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE +16", "CFRunLoopRun +2508", "CFRunLoopRunSpecific +600", "RunCurrentEventLoopInMode +292", "ReceiveNextEventCommon +320", "_BlockUntilNextEventMatchingListInModeWithFilter +76", "_DPSNextEvent +868", "-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] +1312", "Cocoa_PumpEvents +140", "SDL_WaitEventTimeout_REAL +316", "_ZN3Sys11InputUpdateEv +160", "_ZN3Vis10HandleMenuEf +72", "_Z13mainloop_tickv +364", "main +1036", "start +4"]
I cannot detect an actual error in this mega-long message, and the functionality seems unaffected as well? (The handler is called without error, btw, and results in an authenticated player.)
The message goes away if I remove the authentication handler.
Still, it is disconcerting that it barfs that up.
What is going on here?
Thanks!
I have leader boards for my game in App Store Connect, they work.
But when I add an Achievement, I can make a new one with the (+) button, but as soon as I [SAVE] the new entry, I get an error from the web site:
! There was a problem retrieving the data for this page. Please try again.
I have filled in all the fields, and provided at 512x512 PNG image. (I can even see a tiny thumbnail of it in the list, before I click SAVE.)
Note: The same happens if I try to save it without an ENGLISH entry.
What's up with that?
I want to trigger opening the help documentation of my macOS game.
In my info.plist I have:
				<key>CFBundleHelpBookFolder</key>
<string>TrainHelp</string>
<key>CFBundleHelpBookName</key>
<string>Hexa Trains Help</string>
What code will kick off a (browser) window with the documentation?
I have included TrainHelp/ReadMe.html in my Resource bundle.