Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about foundation

Read more about foundation

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - foundation

Is it possible for a sandboxed Mac app to write to the global defaults domain?

Is there any way to allow a sandboxed Mac app to read and write keys to the global user defaults domain (NSGlobalDomain/.globalDomain)? Right now, the writes are failing and this error is being logged...
test-img

Ryan

macos

nsuserdefaults

sandbox

foundation

appstore-sandbox

Votes: 0

Answers: 1

Latest Answer

I was able to solve the problem by adding the following to the app's entitlements file. <key>com.apple.security.temporary-exception.shared-preference.read-write</key> <string>kCFPref...
test-img

Ryan

Running PHP script with Foundation Process - Mac OS Monterey - Swift

Everybody knows some computer that was once setup and is not touchable by the end of its life. I had this kind of device. It was a simple macOS app that fetch data from MySQL and send it to the extern...
test-img

Dzeremix

php

swift

macos

process

foundation

Votes: 0

Answers: 1

Latest Answer

I found the solution which is an order of function calls. There is a proper Swift code to run PHP script inside macOS app: let errorPipe = Pipe() let outputPipe = Pipe() let phpPath = Bundle.main.path...
test-img

Dzeremix

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved