Development Solutions/iOS & OS X

[Apple OS X / iOS] Adding permission (info.plist, entitlements.plist) 권한 추가하기

studio ODOC 2022. 9. 29. 19:35
반응형

[Apple OS X / iOS] Adding permission (info.plist, entitlements.plist)

[Apple OS X / iOS] 권한 추가하기 (info.plist, entitlements.plist)

 

info.plist란 실행 패키지에 관한 설정 정보를 포함한 파일이다.

시스템이 이 파일의 값을 보고 앱에 필요한 설정을 세팅한다.

(info.plist is a file containing configuration information about executable packages.

The system looks at the value of this file and sets the necessary settings for the app.)

 

info.plist 예시
(info.plist example)
   <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>CFBundleGetInfoString</key>
    <string>Carrier Card Terminal</string>
    <key>CFBundleExecutable</key>
    <string>carrier</string>
    <key>CFBundleIdentifier</key>
    <string>de.ourcompany.www</string>
    <key>CFBundleName</key>
    <string>Carrier</string>
    <key>CFBundleIconFile</key>
    <string>carrier.icns</string>
    <key>CFBundleShortVersionString</key>
    <string>0.01</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>IFMajorVersion</key>
    <integer>0</integer>
    <key>IFMinorVersion</key>
    <integer>1</integer>
    </dict>
    </plist>

 

 

entitlements.plist 예시
(example entitlements.plist)

     <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
        <plist version="1.0">
        <dict>
        <key>com.apple.security.device.usb</key> <!-- usb access -->
        <true/>
        <key>com.apple.security.network.server</key> <!-- internal webserver --> 
        <true/>
        <key>com.apple.security.network.client</key> <!-- internal webserver -->
        <true/>
         </dict>
    </plist>

 

 

애플 공식 info.plist / entitlements.plist 항목 설명
(Apple official info.plist / entitlements.plist entry description)

 

https://developer.apple.com/documentation/bundleresources/information_property_list

 

Apple Developer Documentation

 

developer.apple.com

 

반응형