Ask Your Question
3

Why is it that the Xcode app is unable to utilize the MacOs input devices, while the same code in Playground can?

asked 2022-03-01 11:00:00 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-09-13 01:00:00 +0000

nofretete gravatar image

Xcode and Playground use different runtime environments. Playground has a more permissive security model that allows it to access the macOS input devices, while Xcode has a more restricted security model that prevents direct access to input devices by default to ensure the security and privacy of the user's data. To enable access to input devices in Xcode, you need to add the appropriate entitlements to your app's code signing options.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-01 11:00:00 +0000

Seen: 12 times

Last updated: Sep 13 '22