Moving from Process to Subprocess
troz.net·9w
💻CLI Tools
Preview
Report Post

27th November 2025 • 1,250 words • 7 minutes reading time.

For many years, I’ve used Process to call Terminal commands from my macOS apps. Process is an old technology, formerly known as NSTask. It works, but it’s complicated to set up and it can have issues. The Swift language team have now published a modern alternative called Subprocess. Since I’m currently using Process in my Man Reader app and in my macOS Apps Step by Step book, I thought it was time to assess the new option and see if I should swap to it.

I started by creating a sample project using the macOS App template. Then I added the package dependency by searching for `https://gith…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help