본문 바로가기
# 애플 [Apple]/macOS

[🍎 macOS] Apple Silicon .pkg Build 파일을 실행 시 Rosetta 실행 여부를 묻을 경우 해결 방법 (Why does opening a .pkg file on M1 Mac result in prompt to install Rosetta 2?)

by cy_mos 2021. 6. 17.
반응형

Apple Silicon Universal Binary Build를 통하여 .pkg 생성을 하였지만, Apple Silicon M1 환경에서 Rosetta 2 프로그램 실행시 아래와 같이 경고 문구가 발생하는 경우가 발생하는 경우가 있습니다.

 

Mac에 Rosetta를 설치해야 하는 경우 - Apple 지원

 

이러한 경우에는 distribution.xml 파일 내용 중 hostArchitectures 값에 'arm64' 환경을 추가하여야 합니다.

 

hostArchtectures="x86_64,arm64"

 

아래의 도표는 distribution.xml 파일에 대한 속성 값에 대한 세부 내용입니다.

 

Distribution Definition XML Schema Reference Attributes

Attribute Name  Type Description
allow-external-scripts Boolean Optional. Specifies whether the run and runOnce JavaScript functions can be executed. Values: false (default) or true. For information about these functions, see System in Installer JavaScript Reference.
customize String Optional. Specifies whether the user can customize the installation by selecting or deselecting installation choices.

Values:

allow (default) gives the user an opportunity to customize the installation, always presents the customization view automatically.
never does not provide access to the customization view.
hostArchitectures String Optional. A comma-separated list of supported architecture codes. Valid codes are i386, x86_64, and ppc. Note that i386 matches both 32-bit and 64-bit systems, but x86_64 matches only 64-bit systems.
mpkg String Optional. Identifies a package (pkg-ref element) whose installation operations must be performed as part of the installation of this distribution.

Deprecated.
require-scripts Boolean Optional. Indicates whether the distribution uses JavaScript code. Values: true (default) or false. If this value is false, all attributes whose value may be a JavaScript expression must be set to either true or false.

Available in OS X v10.6.6 and later.
rootVolumeOnly
Boolean Optional. Specifies whether the user can choose an installation volume other than the boot volume. 

Values: true or false.

Deprecated. Use domains instead.
type - Reserved.
visibleOnlyForPredicate - Reserved.

🚀 REFERENCE

 

Why does opening a .pkg file on M1… | Apple Developer Forums

Awesome! I knew it had to be simple because it just didn't make any sense that the installer would not be a universal binary.

developer.apple.com

 

Distribution XML Reference

Distribution XML Reference allowed-os-versionsDefines OS version requirements. These consist of one or more version ranges, specified as os-version elements. The version of the operating system on the target volume must fall into one of these ranges to all

developer.apple.com

 

반응형

댓글