News for hackers. Stuff that matters.
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by 999_cirno on Monday July 13, 2026 @06:52PM (#48899998)
> require you to run the agent on your Mac instead of in a Sandbox

You don't have to! All recent Macs come with nearly zero perf cost virtualization. You can easily run Mac or Linux VMs assuming same architecture. Use it all the time for development and whatever.

Use Tart [1] or VirtualBuddy [2], both open-source, for a packaged solution. Or in the spirit of this post, vibe code your own wrapper around the OS API [3]

More recently, there are also Apple containers [4]

[1] https://tart.run/

[2] https://github.com/insidegui/VirtualBuddy

[3] https://developer.apple.com/documentation/virtualization

[4] https://github.com/apple/container

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by DrewADesign on Monday July 13, 2026 @09:39PM (#48901252)
>> I feel like we're back to 1990's security here.

> vibe code your own wrapper around the OS API

Maybe stick with one of the existing projects? Throwing out all of the edge cases and hardening that went into a security-related project just to burn a bunch of resources to generate a worse one you have to maintain yourself is 90s-level security with 2026-level inefficiency, IMO.

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by 999_cirno on Monday July 13, 2026 @09:44PM (#48901288)
Of course, if you're not comfortable with reading or designing code, or don't feel like tinkering, you can use an existing project and they work great

But it is to note that the OS APIs do the heavy lifting, the projects are just wrappers

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by DrewADesign on Monday July 13, 2026 @10:10PM (#48901453)
Generally, assuming an RYO solution is a reasonable first approach is is a trap beginners fall into.
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by 999_cirno on Monday July 13, 2026 @10:31PM (#48901595)
Strong StackOverflow "don't do anything new, god forbid you may actually learn something" vibes

On "Hacker" News of all places :)

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by ben_w on Monday July 13, 2026 @10:43PM (#48901669)
> don't do anything new, god forbid you may actually learn something

vs

> vibe code your own wrapper around the OS API

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by 999_cirno on Monday July 13, 2026 @10:57PM (#48901745)
In fact, I suggest reviewing the documentation to assess your own level:

https://developer.apple.com/documentation/virtualization/run...

If the below sounds too complex to work with, can review more basics first. Can start with a Swift tutorial

  virtualMachine.start(completionHandler: { (result) in
      if case let .failure(error) = result {
           fatalError("Virtual machine failed to start with \(error)")
      }
  })
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by DrewADesign on Tuesday July 14, 2026 @09:54AM (#48906922)
Strong “I’ve never had to deal with serious security problems stemming from a weird edge case, so this all seems silly to me” vibes.
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by pmontra on Tuesday July 14, 2026 @01:18AM (#48902583)
RYO is the best way to learn, if you have the time to learn. After building one own solution one is able to assess the strengths and weaknesses of what other more experienced people built. Without the learning phase those other solutions are incomprehensible black boxes. The trick is not to skip the phase in which one researches available solutions.
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by Someone on Tuesday July 14, 2026 @01:49AM (#48902734)
> RYO is the best way to learn, if you have the time to learn

The problem is that nowadays, people roll their own solution, don’t take the time to learn (somewhat understandably, given the complexity of today’s stuff. You simply cannot learn all details about your hardware, OS, and third-party libraries anymore) but immediately deploy things in production.

Eating your own dog food can be good, but for security related stuff, it can easily be disastrous.

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by brookst on Tuesday July 14, 2026 @09:01AM (#48906190)
Honest question: is there anyone truly good at security who never made a potentially-disastrous dogfooding mistake while learning?

Not to decent mistakes or amateur brain surgery, but there has to be some level of risk tolerance among tinkerers.

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by DrewADesign on Tuesday July 14, 2026 @09:59AM (#48907007)
Developing software that has the sole purpose of preventing something dangerous from happening is exactly when people should strive to be engineers, not tinkerers. Beginners often don’t know the difference.
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by DrewADesign on Tuesday July 14, 2026 @09:56AM (#48906956)
Learning as you go is great if you’re not basing your core development workflow or data integrity on it.
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by iririririr on Monday July 13, 2026 @10:49PM (#48901709)
all community projects (specially the ones maintained or opensourced by model owners) will certainly have the security-convenience trade offs set all the way to convenience while advertising all the (off by default) security features
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by DrewADesign on Tuesday July 14, 2026 @12:10PM (#48909005)
Setting the convenience knob to very convenient in a system that has a lot more eyeballs on it will always be better than having something that one person who, let’s be real, probably doesn’t even have journeyman-level coding skills, estimates to be very secure based on what the model told them and a quick-skim code review.

It’s also a hell of an indictment of this community. FreeBSD is a community project. Qubes is a community project. SELinux is a community project. And people wonder why developers don’t take vibe coders seriously.

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by NamlchakKhandro on Tuesday July 14, 2026 @01:19AM (#48902587)
"Apple Containers"

I love how people say this like Apple finally created a native solution...

They didn't. It's just a linux vm running normal docker engine.

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by 999_cirno on Tuesday July 14, 2026 @02:34AM (#48903008)
> It's just a linux vm running normal docker engine

OCI compatible, but not docker

https://github.com/apple/container/blob/main/docs/technical-...

Actually makes use of Virtualization.framework mentioned above.

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by sunnybeetroot on Tuesday July 14, 2026 @01:44AM (#48902708)
How else do you want people to refer to Apple’s tool called container?
Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by user43928 on Tuesday July 14, 2026 @05:10AM (#48904023)
Does anyone actually use one of those for iOS development?

Linux VMs are not relevant here. For downloading Xcode and building apps, I believe one needs to sign in with their Apple account.

Does this work well with a macOS VM?

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by 999_cirno on Tuesday July 14, 2026 @05:17AM (#48904074)
Yes! That is arguably the killer feature. You can virtualize macOS in macOS with (nearly) native speed and this is officially supported. Heck, even can run multiple of them at the same time.

See docs here: https://developer.apple.com/documentation/virtualization/vir...

And projects like Tart, VirtualBuddy, etc. provide convenient wrappers for these APIs.

Re:Building and Shipping Mac and iOS Apps Without Ever Openi... by fragmede on Tuesday July 14, 2026 @05:25AM (#48904141)
The limit is two. You are not allowed to run more than two macOS VMs. Also Tart VMs have problems with signing into icloud and other things that need a real secureID enclave.