Post

Replies

Boosts

Views

Activity

Apple packages fail to build for watchOS in Xcode 27
Is there a known workaround (other than forking) for watchOS builds in Xcode 27 that depend on packages without a declared watchOS 9.0 floor? I depend on several Apple SPM packages with no minimum deployment target, such as https://github.com/apple/swift-algorithms. My project's minimum is 26.0. Xcode 27 will not build watchOS targets with these packages because watchOS 8.0 is below its range of supported targets. /.../SourcePackages/checkouts/swift-algorithms/Package.swift The watchOS Simulator deployment target 'WATCHOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 27.0.x.
4
16
310
1w
macOS Notification Service killed/fails (but Catalyst/iOS works)
While mutable push notifications process properly in a cousin Catalyst/iOS app, my macOS app does not execute methods in its Notification Service extension to mutate notification content before presentation (when app is active, in background, or terminated). Console logs (below) show the Mac extension is found and launched, but then killed for "sluggish startup". It is the vanilla new file stub with zero dependencies. I'm doubtful this matters, but I am running Monterey RC1/Xcode 13 RC on an M1. What am I configuring improperly? Objective Push a remote notification ~once a month to download a file, locally process user data, and then silence or display a modified alert accordingly. I've Tried Per macOS Notification Service Extension not being used Ensured sandboxed Enabled "Incoming Connection (Server)" (no difference) Wipe DerivedData Run on naive second Mac Per Notification Service Extension Not working Rebooting the Mac Ensuring the deployment target of the app and extension are identical Received Notification From application(_ app: NSApplication, didReceiveRemoteNotification userInfo: [String : Any]) ["customThing": value, "aps": { alert = "Push Mutable"; "mutable-content" = 1; sound = default; }] Signing/Capabilities App Debug/Release Sanboxed w/ outgoing connections Hardened runtime iCloud Push (certificates) Automatic signing w/ cert Notifications Extension Sandboxed Hardened runtime Automatic signing Extension class NotificationService: UNNotificationServiceExtension { var contentHandler: ((UNNotificationContent) -> Void)? var bestAttemptContent: UNMutableNotificationContent? override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) if let bestAttemptContent = bestAttemptContent { bestAttemptContent.title = "[modified]" bestAttemptContent.body = "Changed" contentHandler(bestAttemptContent) } } override func serviceExtensionTimeWillExpire() { if let contentHandler = contentHandler, let bestAttemptContent = bestAttemptContent { contentHandler(bestAttemptContent) } } } Console Perhaps relevant? usernoted <IDENTIFIER> Extension will be killed due to sluggish startup error serviceExt com.apple.unc usernoted LogFromBuildToNotificationPush.txt
4
4
3.7k
Mar ’23
Apple packages fail to build for watchOS in Xcode 27
Is there a known workaround (other than forking) for watchOS builds in Xcode 27 that depend on packages without a declared watchOS 9.0 floor? I depend on several Apple SPM packages with no minimum deployment target, such as https://github.com/apple/swift-algorithms. My project's minimum is 26.0. Xcode 27 will not build watchOS targets with these packages because watchOS 8.0 is below its range of supported targets. /.../SourcePackages/checkouts/swift-algorithms/Package.swift The watchOS Simulator deployment target 'WATCHOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 27.0.x.
Replies
4
Boosts
16
Views
310
Activity
1w
macOS Notification Service killed/fails (but Catalyst/iOS works)
While mutable push notifications process properly in a cousin Catalyst/iOS app, my macOS app does not execute methods in its Notification Service extension to mutate notification content before presentation (when app is active, in background, or terminated). Console logs (below) show the Mac extension is found and launched, but then killed for "sluggish startup". It is the vanilla new file stub with zero dependencies. I'm doubtful this matters, but I am running Monterey RC1/Xcode 13 RC on an M1. What am I configuring improperly? Objective Push a remote notification ~once a month to download a file, locally process user data, and then silence or display a modified alert accordingly. I've Tried Per macOS Notification Service Extension not being used Ensured sandboxed Enabled "Incoming Connection (Server)" (no difference) Wipe DerivedData Run on naive second Mac Per Notification Service Extension Not working Rebooting the Mac Ensuring the deployment target of the app and extension are identical Received Notification From application(_ app: NSApplication, didReceiveRemoteNotification userInfo: [String : Any]) ["customThing": value, "aps": { alert = "Push Mutable"; "mutable-content" = 1; sound = default; }] Signing/Capabilities App Debug/Release Sanboxed w/ outgoing connections Hardened runtime iCloud Push (certificates) Automatic signing w/ cert Notifications Extension Sandboxed Hardened runtime Automatic signing Extension class NotificationService: UNNotificationServiceExtension { var contentHandler: ((UNNotificationContent) -> Void)? var bestAttemptContent: UNMutableNotificationContent? override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) if let bestAttemptContent = bestAttemptContent { bestAttemptContent.title = "[modified]" bestAttemptContent.body = "Changed" contentHandler(bestAttemptContent) } } override func serviceExtensionTimeWillExpire() { if let contentHandler = contentHandler, let bestAttemptContent = bestAttemptContent { contentHandler(bestAttemptContent) } } } Console Perhaps relevant? usernoted <IDENTIFIER> Extension will be killed due to sluggish startup error serviceExt com.apple.unc usernoted LogFromBuildToNotificationPush.txt
Replies
4
Boosts
4
Views
3.7k
Activity
Mar ’23
Is tide data available?
I guess this is more of a public question for Apple: can/will tide data be packaged into WeatherKit? (FB10383248)
Replies
0
Boosts
0
Views
741
Activity
Jun ’22