Post

Replies

Boosts

Views

Activity

Comment on Helper app is sandboxed (entitlement + runtime check), but `URLsForDirectory:` returns user home (`/Users//`) instead of container path — why?
This helper is an app bundle, like the upper one you provided. Since our main app is an Electron app, so the helper is started by node child_process.spawn() with command set to MyApp.app/Contents/MacOS/MyHelper.app/Contents/MacOS/MyHelper. I see from source code that Node spawn() calls libuv's uv_spawn(), which calls posix_spawn() when nothing went wrong through its call path. Otherwise, it fork()s and exec*()s though.
Sep ’25
Comment on Helper app is sandboxed (entitlement + runtime check), but `URLsForDirectory:` returns user home (`/Users//`) instead of container path — why?
This helper is an app bundle, like the upper one you provided. Since our main app is an Electron app, so the helper is started by node child_process.spawn() with command set to MyApp.app/Contents/MacOS/MyHelper.app/Contents/MacOS/MyHelper. I see from source code that Node spawn() calls libuv's uv_spawn(), which calls posix_spawn() when nothing went wrong through its call path. Otherwise, it fork()s and exec*()s though.
Sep ’25
Comment on Can DEVELOPER_DIR or xcode-select support Command Line Tools at custom paths?
Filed as FB21570087. Thanks!
Replies
Boosts
Views
Activity
Jan ’26
Comment on Helper app is sandboxed (entitlement + runtime check), but `URLsForDirectory:` returns user home (`/Users//`) instead of container path — why?
To not be misleading, the title is wrong on user home path. It should be /Users/<me>/, but maybe <me> was removed by system due to possible security issue though.
Replies
Boosts
Views
Activity
Sep ’25
Comment on Helper app is sandboxed (entitlement + runtime check), but `URLsForDirectory:` returns user home (`/Users//`) instead of container path — why?
This helper is an app bundle, like the upper one you provided. Since our main app is an Electron app, so the helper is started by node child_process.spawn() with command set to MyApp.app/Contents/MacOS/MyHelper.app/Contents/MacOS/MyHelper. I see from source code that Node spawn() calls libuv's uv_spawn(), which calls posix_spawn() when nothing went wrong through its call path. Otherwise, it fork()s and exec*()s though.
Replies
Boosts
Views
Activity
Sep ’25
Comment on Helper app is sandboxed (entitlement + runtime check), but `URLsForDirectory:` returns user home (`/Users//`) instead of container path — why?
This helper is an app bundle, like the upper one you provided. Since our main app is an Electron app, so the helper is started by node child_process.spawn() with command set to MyApp.app/Contents/MacOS/MyHelper.app/Contents/MacOS/MyHelper. I see from source code that Node spawn() calls libuv's uv_spawn(), which calls posix_spawn() when nothing went wrong through its call path. Otherwise, it fork()s and exec*()s though.
Replies
Boosts
Views
Activity
Sep ’25