Post

Replies

Boosts

Views

Activity

Reply to Xcode 15.3 and iOS 17.4 generate a CPU spike when launching the app
This seems to be related to the fix on 'Thread Performance Checker': https://developer.apple.com/documentation/xcode-release-notes/xcode-15_3-release-notes#Thread-Performance-Checker If I disable it on the running scheme, the CPU spike is gone. Since the backtrace seems to be all internal to the OS (no calls to our app are being logged), it doesn't look like there's anything I can do until Apple fixes it internally, right?
Topic: App & System Services SubTopic: General Tags:
Mar ’24
Reply to Xcode Cloud is not showing new branches on the branch picker when starting a manual workflow
Okay ignore me. Apparently Xcode Cloud recently changed and added a 'Manual Build' trigger option. We were using a disabled workflow before with the trigger on a branch changes. We were starting builds manually by running one on them and picking the branch we want. The moment I removed that trigger and replaced it for the 'Manual Build' one, the branches started appearing again!
Feb ’24
Reply to Xcode Cloud is not showing new branches on the branch picker when starting a manual workflow
I sort of fixed it by nuking everything. One one of the apps, I clicked on 'Delete Xcode Cloud Data'. Then I recreated the workflows because everything is gone (we just had one, so it was simple to do on that one) and now it shows new branches again. Is there no way to fix this other than re-configuring the whole thing? The other apps I mentioned have much more complicated workflows that will be really painful to re-create again...
Feb ’24
Reply to SwiftUI apps on macOS don't relaunch after being minimized
I've found a hack since AppDelegate.applicationShouldHandleReopen(_:hasVisibleWindows:) is not called as explained in the comment above. Apparently AppDelegate.applicationWillBecomeActive(_:) is called when you click on the Dock app icon if the window is miniaturized, so inside that method simply add this and seems to be working as expected (macOS 12.4): func applicationWillBecomeActive(_ notification: Notification) {     (notification.object as? NSApplication)?.windows.first?.makeKeyAndOrderFront(self) }
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’22
Reply to SwiftUI apps on macOS don't relaunch after being minimized
I've been digging how to implement this manually and seems that AppDelegate.applicationShouldHandleReopen(_:hasVisibleWindows:) would've done the trick, but even if you implement the @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate, that method is never called. Found another example of the same issue online: https://www.reddit.com/r/SwiftUI/comments/u5srtt/applicationshouldhandlereopen_is_not_called_in
Topic: UI Frameworks SubTopic: AppKit Tags:
May ’22