Post

Replies

Boosts

Views

Activity

Reply to launchd and git
I think I have just about solved the problem. My shell script launched both my own binary and git. I have updated my binary to launch git via Process. Now my launchd plist launches my binary itself instead of using the shell. It has asked for UI permission to run each time (3 times now). I'm not sure why my answer hasn't been sticky yet...
Apr ’24
Reply to DST, DateEncodingStrategy.iso8601, and UTC Fun
[quote='812604022, DTS Engineer, /thread/767837?answerId=812604022#812604022'] That depends on exactly what it’s doing wrong. Do you have code for that library? [/quote] No, it's iTunesLibrary in macOS. All of my code is on my GitHub. Adding to the debugging clues, last night it returned dateModified values back in line with what they were before the DST change! I'm guessing that somewhere deep in that code it was not fully aware DST has changed. Strangely, the dateAdded changes remain. I know this will sound crazy, but I think iTunes has had this bug since at least 2007, when I started dumping its data regularly!
Topic: App & System Services SubTopic: General Tags:
Nov ’24
Reply to SwiftUI lifecycle / CarPlay / data model
Hi. Basically I want the state of the iOS app to be shared with CarPlay, if the iOS app is already launched. I also want the CarPlay state to be shared with the iOS app if iOS is launched later. If there is no state to share, each will initialize its own state. Will CPTemplateApplicationSceneDelegate be "launched" w/o starting the iOS App / UIApplicationDelegate? As an example, I see Apple Maps will share the selected route if you loaded it at home before getting in the car. On the iOS app, I see the Apple Maps steps UI if the CarPlay is navigating. I think it boils down to wanting to know how to transfer data from a SwiftUI App to UISceneDelegate. I assumed it would be via the UIApplicationDelegate. The CoastalRoads CarPlay example doesn't use SwiftUI, and it has TemplateManager.shared. I was hoping there would be a way to pass data around via the app and scene delegates w/o a .shared. Thanks for replying!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’25
Reply to NavigationStack $path cleared on dealloc?
I went to a WWDC25 SwiftUI Lab regarding this issue. The suggested known workaround was to wrap the 2nd property change in a DispatchQueue.main.async call so that it happens on the next turn of the run loop. You can see my change here: https://github.com/bolsinga/site/pull/1024
Topic: UI Frameworks SubTopic: SwiftUI
Jul ’25
Reply to Can you publish an unlisted app for tvOS? How to install it?
I assume they must install your app via TestFlight.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Issue with SceneStorage in ViewModifer, but not in View
I'm sorry; I see the message. I do not understand why the ViewModifier (which knows the View) is different in this manner than the View itself. Thanks.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Reply to launchd and git
Aha. My shell script is sandboxed. Not sure if I can add permissions to a shell script. I am going to try to create a Swift command line tool that uses Process to invoke git. Updates to come.
Replies
Boosts
Views
Activity
Mar ’24
Reply to launchd and git
I think I have just about solved the problem. My shell script launched both my own binary and git. I have updated my binary to launch git via Process. Now my launchd plist launches my binary itself instead of using the shell. It has asked for UI permission to run each time (3 times now). I'm not sure why my answer hasn't been sticky yet...
Replies
Boosts
Views
Activity
Apr ’24
Reply to Issue with SceneStorage in ViewModifer, but not in View
With the same code, the warning is gone in Xcode 15.4, where I target x.5 releases of iOS and macOS.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Reply to SwiftUI Commands and StrictConcurrency Warnings Issue
Fixed w/ proper annotations in iOS18.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Linking to iTunesLibrary requires access every launch?
moved to original post
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Linking to iTunesLibrary requires access every launch?
moved to original post
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Linking to iTunesLibrary requires access every launch?
Thanks @DTS Engineer (Quinn)! I used your suggestion and it worked. I made a wrapping App Bundle that lets it work again and again when loaded by my LaunchAgent.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to MusicKit / macOS : Song.Artwork not nil when there is no Artwork
This appears to be fixed in newer OSs.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to DST, DateEncodingStrategy.iso8601, and UTC Fun
[quote='812604022, DTS Engineer, /thread/767837?answerId=812604022#812604022'] That depends on exactly what it’s doing wrong. Do you have code for that library? [/quote] No, it's iTunesLibrary in macOS. All of my code is on my GitHub. Adding to the debugging clues, last night it returned dateModified values back in line with what they were before the DST change! I'm guessing that somewhere deep in that code it was not fully aware DST has changed. Strangely, the dateAdded changes remain. I know this will sound crazy, but I think iTunes has had this bug since at least 2007, when I started dumping its data regularly!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to DST, DateEncodingStrategy.iso8601, and UTC Fun
Thanks for your suggestion of changing my Mac's Time Zone to reproduce the bug! I filed FB15767197 with a simple program attached to that bug. Program demonstrating the problem. The bad Dates occur with both MusicKit and iTunesLibrary, so hopefully the underlying bug can be fixed for them both.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to SwiftUI lifecycle / CarPlay / data model
Hi. Basically I want the state of the iOS app to be shared with CarPlay, if the iOS app is already launched. I also want the CarPlay state to be shared with the iOS app if iOS is launched later. If there is no state to share, each will initialize its own state. Will CPTemplateApplicationSceneDelegate be "launched" w/o starting the iOS App / UIApplicationDelegate? As an example, I see Apple Maps will share the selected route if you loaded it at home before getting in the car. On the iOS app, I see the Apple Maps steps UI if the CarPlay is navigating. I think it boils down to wanting to know how to transfer data from a SwiftUI App to UISceneDelegate. I assumed it would be via the UIApplicationDelegate. The CoastalRoads CarPlay example doesn't use SwiftUI, and it has TemplateManager.shared. I was hoping there would be a way to pass data around via the app and scene delegates w/o a .shared. Thanks for replying!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to Linking to iTunesLibrary requires access every launch?
I've worked around with an App Bundler wrapping my CLI. However I saw this post today, and I think it is relevant for anyone coming across this Forum post in the future. https://steipete.me/posts/2025/applescript-cli-macos-complete-guide
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’25
Reply to NavigationStack $path cleared on dealloc?
I went to a WWDC25 SwiftUI Lab regarding this issue. The suggested known workaround was to wrap the 2nd property change in a DispatchQueue.main.async call so that it happens on the next turn of the run loop. You can see my change here: https://github.com/bolsinga/site/pull/1024
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jul ’25