Part 1
요약·해설
macOS 10.15 Catalina 이후 Terminal에도 적용되는 Gatekeeper 정책, quarantine 해제 command와 Developer Tools 허용 방법, Homebrew 예외 및 MacPorts의 Rust dependency를 설명합니다.
Gatekeeper · Quarantine
xattr · Developer Tools
Homebrew · MacPorts
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
5DC4C5E02EEF01C9F2C7496C4B97E25FD6480E13F6717973F7C3809160A1110E
.. _mac-setup-alts:
macOS alternative setup instructions
####################################
.. _mac-gatekeeper:
Important note about Gatekeeper
*******************************
Starting with macOS 10.15 Catalina, applications launched from the macOS
Terminal application (or any other terminal emulator) are subject to the same
system security policies that are applied to applications launched from the
Dock. This means that if you download executable binaries using a web browser,
macOS will not let you execute those from the Terminal by default. In order to
get around this issue you can take two different approaches:
* Run ``xattr -r -d com.apple.quarantine /path/to/folder`` where
``path/to/folder`` is the path to the enclosing folder where the executables
you want to run are located.
* Open :menuselection:`System Preferences --> Security and Privacy --> Privacy`
and then scroll down to "Developer Tools". Then unlock the lock to be able to
make changes and check the checkbox corresponding to your terminal emulator of
choice. This will apply to any executable being launched from such terminal
program.
Note that this section does **not** apply to executables installed with
Homebrew, since those are automatically un-quarantined by ``brew`` itself. This
is however relevant for most :ref:`toolchains`.
.. _macOS Gatekeeper: https://en.wikipedia.org/wiki/Gatekeeper_(macOS)
Additional notes for MacPorts users
***********************************
While MacPorts is not officially supported in this guide, it is possible to use
MacPorts instead of Homebrew to get all the required dependencies on macOS.
Note also that you may need to install ``rust`` and ``cargo`` for the Python
dependencies to install correctly.
Part 3
한국어 전문 번역
macOS 대체 설정 지침
이 문서는 macOS에서 Zephyr 개발 도구를 준비할 때 Gatekeeper와 MacPorts 때문에 추가로 알아야 할 사항을 설명합니다.
Gatekeeper에 관한 중요 참고 사항
macOS 10.15 Catalina부터 macOS Terminal application이나 다른 terminal emulator에서 실행한 application에도 Dock에서 실행한 application과 같은 system security policy가 적용됩니다. 따라서 web browser로 executable binary를 내려받으면 macOS는 기본적으로 Terminal에서 그 binary를 실행하지 못하게 합니다. 이 문제는 다음 두 방법 가운데 하나로 해결할 수 있습니다.
xattr -r -d com.apple.quarantine /path/to/folder를 실행합니다. 여기서path/to/folder는 실행하려는 executable이 들어 있는 상위 folder의 path입니다. 이 command는 해당 folder 아래 file의 quarantine extended attribute를 재귀적으로 제거합니다.System Preferences > Security and Privacy > Privacy를 열고Developer Tools까지 scroll합니다. 자물쇠를 풀어 설정을 변경할 수 있게 한 다음 사용하는 terminal emulator의 checkbox를 선택합니다. 그러면 그 terminal program이 실행하는 모든 executable에 이 허용이 적용됩니다.
이 절은 Homebrew로 설치한 executable에는 적용되지 않습니다. brew가 해당 file의 quarantine을 자동으로 해제하기 때문입니다. 그러나 대부분의 toolchain을 browser 등으로 직접 내려받을 때는 이 내용이 중요합니다.
MacPorts 사용자를 위한 추가 참고 사항
이 guide는 MacPorts를 공식 지원하지 않지만, Homebrew 대신 MacPorts를 사용해 macOS에 필요한 dependency를 모두 설치할 수 있습니다. Python dependency가 올바르게 설치되도록 rust와 cargo를 추가로 설치해야 할 수도 있습니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.