본 페이지는 App Distribution Guide 문서의 Developing Apps Using the Team Provisioning Profile 부분을 번역해 놓은 페이지 압니다. 발 번역이라 이상한 부분이 있을 수 있습니다. 발견즉시 댓글을 달아 주세요.




Developing Apps Using the Team Provisioning Profile
앱 개발에 Team 프로비저닝 프로파일 이용하기

All iOS apps and most Mac apps require that you use provisioning profiles during development. For iOS apps, you cannot run an app on a device (an iPhone, iPad, or iPod touch) until you provision that device for development. Similarly, you cannot run an app on a Mac that uses certain store technologies until you provision the Mac.

모든 iOS 앱들과 대부분의 Mac App들은 개발하는 동안 프로비저닝 프로파일을 사용해야 합니다. iOS 앱들은, 개발용 장치를 프로비전 전까지 앱을 장치에서 실행 시킬수 없습니다. 마찬가지로, Mac을 프로비전하기 전까지 맥에서 확실한 스토어 기술(iCloud 등)들을 이용한 앱을 동작시킬 수없습니다.


Provisioning is the process of preparing and configuring an app to launch on devices and use certain services. During development and testing, you designate the devices that can launch your app. When you submit your app to the store, you just provision your app. Provisioning iOS and Mac apps involves creating certificates, configuring App IDs, creating development and distribution provisioning profiles, and setting entitlements.

프로비저닝은 앱을 장치에 실행하고 certain services(iCloud)를 이용하기 위한 준비 공정과 환경설정 입니다. 개발과 테스트를 하는동안, 당신의 앱을 실행할 수 있는 장치를 지정합니다. 당신이 당신의 앱을 Store로 보낼때, 그 순간에 당신의 앱을 프로비전 합니다. iOS와 Mac 앱들의 프로비저닝은 인증서 생성, App ID들의 설정, 개발과 배포 프로비저닝 프로파일 생성, 그리고 공식적 자격 설정을 수반합니다.


This chapter shows you how to use the team provisioning profile, which Xcode manages for you, to simplify the provisioning process during development. Xcode automatically adds your development certificate and all registered devices to the team provisioning profile. For example, you can use the team provisioning profile to run your iCloud app on all of your development devices. You can also use the team provisioning profile to run sample and test apps on devices.

이장은 당신이 team 프로비저닝 프로파일 사용, 당신을 위해 Xcode 관리하는 것, 개발하는 동안의 간단한 프로비전 공정을 하는 방법들을 보여 줍니다. Xcode는 당신의 개발 인증서를 자동으로 추가하고 team provisioning profile에 모든 장치가 등록됩니다. 예를 들어, 당신은 team provisioning profile을 이용해 모든 개발 장치 위에 iCloud 앱을 동작 시킬 수 있슴니다. 당신은 또한 team provisioning profile로 샘플과 테스트 앱을 당신의 장치에서 동작 시킬수 있습니다.


For iOS apps, you can use the team provisioning profile to enable iCloud, data protection, and Passbook. For Mac apps, you can use the team provisioning profile to enable iCloud. To configure other store technologies that require a custom provisioning profile, read“Provisioning Your App for Store Technologies.”

iOS 앱들을 위해, team provisioning profile을 이용해 iCloud, 데이터 보호, 그리고 Passbook을 활성화 할 수 있습니다. Mac 앱들을 위해, team provisioning profile을 이용해 iCloud를 활성화 할 수있습니다. 다른 스토어 기술들을 설정하는 데 요구되는 provisioning profile 사용자 구성은, 'Store Technologie들을 이용을 위한 당신의 앱 프로비전'.

About the Team Provisioning Profile
team provisioning profile에 관해서

The team provisioning profile is a development provisioning profile that Xcode manages for you. A development provisioning profile allows your app to launch on devices and use certain store technologies during development. For an individual, the team provisioning profile allows all apps signed by you to run on all of your registered devices. For a company, the team provisioning allows any app developed by a team, to be signed by any team member, and installed on any team device. Because the team provisioning profile isn’t associated with a specific app, this profile is very useful when you want to install simple test apps on a device. When learning to provision devices, it is easier to start by using the team provisioning profile.

team provisioning profile은 당신을 위해 Xcode가 관리하는 개발용 provisioning profile 입니다. 개발 provisioning profile은 개발하는 동안, 당신의 앱을 장치와 확식한 스토어 기술들 사용을 허가 합니다. 개인을 위한, team provisioning profile은 등록된 모든장치위 당신의 앱 실에 당신의 앱을 사인하는 것을 허가 합니다. 회사를 위한, team provisioning profile은 team이 개발한 어떤 앱이, 어느 팀 맴버사인 하고, 어떤 팀 장치에 설치되는 것을 허가 합니다. team provisioning profile 지정앱과 연관 된 것이 아니기 때문에, 이 profile은 당신이 장치에 간단한 테스트앱을 설치할 때 매우 유용합니다. 장치 준비하기를 배웠을 때, team provisioning profile을 이용해 시작하는 것은 매우 쉽습니다.


The team provisioning profile contains:
team provisioning profile에 포함된 것들 : 

  • wildcard App ID that matches all your team’s apps
    당신의 팀 모든 앱에 맞춰지는 'wildcard App ID'

  • All devices associated with the team
    team과 연관된 모든 장치.

  • All development certificates associated with the team
    team과 연관된 모든 개발 인증서.


The first time you register a device, Xcode creates the team provisioning profile named iOS Team Provisioning Profile or Mac Team Provisioning Profile using a wildcard App ID it also creates. Thereafter, Xcode updates the team provisioning profile whenever you register a device, create a development certificate, or refresh provisioning profiles using Xcode. (Changes you make to your team assets using Member Center don’t automatically update the team provisioning profile.) Xcode adds all of the devices and development certificates from all team members to this profile. The team provisioning profile can be used for iCloud but not for other store technologies that require anexplicit App ID.

첫번째 장치 등록, Xcode는 'wildcard App ID' 생성 해 이것을 이용해 iOS Team Provisioning Profile 또는 Mac Team Provisioning 프로파일로 명명된 team provisioning 프로파을 생성합니다. 그 후, Xcode는 당신이 장치를 등록하고, 개발인증서를 생성또는 Xcode를 이용해 provisioning profile을 리프레쉬 할때마다 team provisioning profile을 업데이트 합니다. (Member Center를 이용해 변경한 team 자원은 자동으로 업데이트 되지 않습니다.) Xcode는 모든 팀 구성원으로 부터 모든 장치와 개발인증서를 이 프로파일에 추가합니다. team provisioning profile은 iCloud를 이용할 수 있으나 다른 저장기술들은 'explicit App ID' 를 요구하므로 안됩니다.


This diagram shows an iOS Team Provisioning Profile for a company with three team members.
이 도표는 3명의 팀멤버의 회사용 iOS Team Provisioning Profile을 보여줍니다.

../Art/team_provisioning_ios_2x.png

This diagram shows a similar Mac Team Provisioning Profile for a Mac company.
이 도표는 Mac 회사용 간단한 Mac Team Provisioning 을 보여줍니다.

../Art/team_provisioning_mac_2x.png

Adding Devices to Your Team Provisioning Profile
당신읜 팀 프로비저닝 파일에 장치 추가.


After creating the signing certificates, the next step is to register your development devices. The first time you register a device, Xcode creates the team provisioning profile containing a wildcard App ID it also creates, and all the iOS Development or Mac Development certificates in your account.

사인용 인증서를 생성한 뒤, 다음 단계는 당신의 개발 장치를 등록하는 것입니다. 첫 째 당신은 장치, Xcode는 wildcard App ID 작성하고 이것이 포함된 team provisioning profile을 생성, 그리고 당신의 계정속 모든 iOS 개발 또는 Mac 개발 인증서를 등록 합니다.


You can register development devices using either Xcode or Member Center. However, if you register your device using Xcode, Xcode updates the team provisioning profile and provisions your device at the same time. The device is provisioned when a provisioning profile that contains the device information is installed on the device.

당신은 Xcode 또는 Member Center 둘중하나를 이용해 개발용 장치를 등록합니다. 하지만, 만약 당신이 Xcode릴 이용해 장치를 등록하면, Xcode는 team provision profile과 장치 provision을 동시에 업데이트 합니다. 장치정보를 포함한 프로비저닝 프로파일이 장치에 설치될 때 장치는 프로비전됩니다.


Registering and Provisioning an iOS Device Using Xcode

Xcode를 이용해 iOS장치 등록과 프로비저닝.


For iOS apps, you register and provision a device in a single operation.
iOS 앱들을 위해, 단일 운영되는 장치를 등록과 프로비전 합니다.


Registering and Provisioning a Mac Using Xcode

Xcode를 이용해 Mac 등록과 프로비저닝.

If your Mac app uses specialized technologies such as iCloud and Game Center, you need to provision it for development, too. After you register your Mac and add it to a provisioning profile, you install the provisioning profile on the Mac.

만약 당신 맥앱이 iCloud와 Game Center와 같은 전문적인 기술을 사용한한다면, 역시 개발을 위해 프로비전이 필요합니다. 당신의 맥이 등록되고 provisioning profile에 추가된 후, Mac에 provisioning profile을 설치합니다.


Verify Your Steps
당신의 단계들 확인하기.


The first time that you use the team provisioning profile, you should verify that the device ID has been added correctly and that the team provisioning profile is installed on your device.

첫째는 team provision profile을 이용해, 바르게 추가된 장치의 ID와 장치에 설치된 team provisioning profile을 확인해야 합니다. 

Verify That Your Device Was Registered and Added to the Team Provisioning Profile
장치가 Team Provisioning Profile에 추가되고 등록되었는지 확인하기.

Use Member Center to view your registered devices and details about the team provisioning profile.
'Member Center'를 이용해 당신의 등록된 장치와 team provisioning profile에 관한 자세한 정보를 표시합니다.



Verify That Your Team Provisioning Profile Is Installed on Your Device
당신의 장치에 당신의 Team Provisioning Profile이 설치된 것을 확인하기


Use Xcode to examine the provisioning profiles on your device.
당신의 장치의 provisioning profile들 확인하는 데 Xcode 이용하기.

For Mac apps, optionally use System Preferences to view all of the installed provisioning profiles.
맥앱 들을 위해, 선택적으로 설치된 provisioning profiles를 모두보려면 시스템 환경설정을 사용해야합니다.


Troubleshooting
트러블 슈팅(문제점 발견시 방법을 찾아 해결하기)

There are several reasons why Xcode may not create the team provisioning profile. Follow the steps for each situation below and then re-create the team provisioning profile.
이것은 Xcode로 team provisioning profile이 생성되지 않을지 모르는 생성되지 몇몇 이유입니다. 각각의 상황과 team provisioning profile 재생성 시 단계를 따르세요.

  • If you have a team provisioning profile but for some reason it is invalid, delete and re-create it. Follow the steps in “Removing Provisioning Profiles from Your Team” to delete the team provisioning profile.
    만약 당신이 team provisioning profile을 가지고 있으나 몇몇의 이유로 유효하지 안다면, 삭제와 재 생성을 하세요. '당신의 Team으로 부터 Provisioning Profiles 삭제'속 단계들을 따라 team provioning profile을 삭제하세요.

  • If your device was previously registered but is disabled, enable the device using Member Center and then refresh your developer profile using Xcode to create the team provisioning profile.
    만약 당신이 이미 장치를 등록했으나 비활성화 되었다면, Member Center를 이용해 활성화 하고 Xcode를 이용해 당신의 개발자 프로파일을 활성화하고 Xcode를 이용해 당신의 개발자 프로파일을 리프레쉬 하여  team provisioning profile을 생성합니다.

  • If your device was previously registered and is enabled, refresh your developer profile using Xcode to create the team provisioning profile.
    만약 당신의 장치를 이전에 등록하고 활성화라면, using Xcode를 이용해 당신의 개발 프로파일을 리프레쉬 해 team provisioning profile을 생성합니다.

To create the team provisioning profile using assets already in your account, open the Devices organizer in Xcode and select "Refresh from Developer Portal” from the Editor menu.
당신의 계정 속 준비된 자원을 이용해 team provisioing profile을 생성하는 것은, Xcode 속 'Devices organizer'를 열고 에디터 메뉴로 부터 'Refresh from Developer Portal'을 선택합니다.


Code Signing Your App Using the Team Provisioning Profile
Team Provisioning Profile을 이용해 당신의 앱 사인.

To run an app on an iOS device and enable store technologies, the app needs to be code signed and provisioned. For example, using the team provisioning profile, you can enable iCloud. When you select your development certificate—contained in the team provisioning profile—as the code signing identity, the app is code signed and the team provisioning profile is embedded in your app’s bundle. The embedded team provisioning profile allows your app to launch and use iCloud.

iOS 장치와 활성화된 스토어기술(iCloud 같은)들의 실행에, 앱에 코드 사인과 프로비전이 되어 있어야 합니다. 예를 들어, team provisioning profiles을 이용해, iCloud를 활성화 할 수 있습니다. 당신이 코드 사이닝 식별자로 당신의 개발자 인증서(team provisioning profile 속 포함된)를 선택할 때, 앱은 코드사인되고 당신의 앱 꾸러미(패키지 의미 인듯) 속에 team provisioning profile이 포함됩니다. 포함된 team provisioing profile은 당신앱이 실행되고 iCloud를 사용하는 것을 허락합니다.


When you build the app, you code sign it with the signing certificate contained in the provisioning profile you want to use. The possible values for the Code Signing Identity build setting pop-up menu are:
앱이 빌드 될때, 당신이 사용하기 원하는 프로비저닝 프로파일 속에 포함된 사인용 인증서와 함께 코드 사인합니다. 코드 사인용 식별자 빌드 셋팅 팝업 메뉴의 가능 값:

  • Don’t Code Sign. Don’t sign your app. Selecting this option disables entitlements including sandboxing.
    'Don't Code Sign'. 당신의 앱을 사인하지 않습니다. 이 옵션 선택은 공식적으로 포함된 샌드박싱(코드를 안전하게 동작시키는 기능)을 비활성화 합니다.

  • Automatic Profile Selector. Selects an identity that matches your developer or distribution certificate name.
    ' Automatic Profile Selector', 당신의 개발 또는 배포인증서 이름에 맞는 식별자를 선택합니다.

  • Identities without Provisioning Profiles. Selects a code signing identity that is not in a provisioning profile.
    'Identities without Provisioning Profiles'. 프로비저닝 프로파일에 없는 코드 사인 식별자를 선택합니다.

  • Other. Selects a specific code signing identity. The code signing identities in your default keychain are listed by the name. Expired or otherwise invalid identities are dimmed and cannot be chosen.
    'Other'. 지정된 코드 사이닝 식별자를 선택합니다. 당신의 기본 keychain 속 코드 사인 식별자는 이름으로 나열됩니다. 만료 또는 유효하지 않은 식별자는 흐리게 표시되어 선택할 수 없습니다.

A menu item appears in the Code Signing Identity build setting pop-up menu for each provisioning profile to which your development certificate belongs. The default setting is the platform-specific development certificate that appears in the Automatic Profile Selector menu item, which matches your development certificate in the team provisioning profile. Refer to Table 2-1 for a description of each type of certificate that may appear in this menu.

개발자 인증서에 위치한 것들은 각각의 프로비저닝 프로파을 위한 메뉴 아이템은 Code Signing Identity build 셋팅 팝업메뉴에 나타납니다. 기본 셋팅은 Automatic Profile Selector menu item에 나타나는 'platform-sectific(플랫폼 지정) development certificate' 이고 team provisioning profile속 당신의 개발 인증서와 일치하는 것들입니다. 메뉴에 표시되는 각 타입의 인증서의 설명은 'Table 2-1'을 참조하세요.


Before you begin, decide whether to set the Code Signing Identity build setting at the project or target level. For a single target, you can set this build setting at either the project or target level as long as you are consistent. For multiple targets that use the same code signing identity, you should set this build setting at the project level. For multiple targets that use different code signing identities, you must set this build setting for each individual target. For example, choosing the project level ensures that any helper apps inside of your project are code signed as well as the main app.

당신이 시작하기전, 프로젝트 또는 목표 레벨에 따른 코드 사인 식별자 빌드 셋팅을 할것인지 말것인지 결정합니다. 단일 타겟을 위해, 프로젝트 또는 타겟 레벨이 일관성을 유지할 때 당신은 이 빌드 셋팅을 할 수 있습니다. 멀티 타겟을 위해 같은 코드 사인 식별자를 이용하고, 프로젝트 레벨을 설정 해야 합니다. 멀티 타겟을 위해 다른 코드 사인 식별자를 이용하고, 각각의 타겟을 위해 빌드 셋팅을 해야 합니다. 예를 들어, 당신의 프로젝트 속에 있는 각 도움용 앱들은 코드 사인된 메인 앱과 마찬가지로 보장할 프로젝트 레벨을 선택합니다.


Set the Code Signing Identity to your development certificate contained in the team provisioning profile.
코드사인 식별자를 설정해 당신의 개발자 인증서를 team provisioning profile속에 포함합니다.

You must build your app to actually code sign it. You can build and run your Mac app by simply clicking the Run button. For an iOS app, follow the steps in “Launching Your iOS App on the Device,” to sign your app and launch it on a device.

당신 앱은 빌드해 실제로 코드 사인 해야 합니다. 당신은 'Run' 버튼을 간단히 클릭함 으로써 Mac app 빌드하고 동작할 수 있습니다. iOS 앱을 위해 '장치에 당신의 앱 실행하기'속 단계를 따라 장치에서 앱을 동작시키세요.


The first time you sign your app, a dialog appears asking if you want to allow the codesign command-line utility to sign your app using the private key in your login keychain. When you see this dialog, click Always Allow. If you click Allow, the dialog appears every time you build and run your app. If a dialog appears when you run the app asking for a Developer Tools Access login, enter an account name and password of a user in this group—for example, a system administrator—and click Continue.

당신의 앱 사인 첫째는, 만약 당신이 codesign command-line 유팉리티를 허가해 로그인 keychain 속 개인키를 이용해 당신의 앱을 사인한다면 다이얼로그에 질문이 나타나 묻습니다. 이 다이얼로그를 봤을 때, 'click Always Allow'를 크릭하세요. 만약 Allow를 클릭하면, 당신의 앱을 빌드하고 실행 할때 마다 다이얼로그가 표시됩니다. 만약 App을 동작시킬때 Developer Tools Access 로그인을 위한 다이얼로그가 나타나면, 그룹에 속한 계정 이름과 패스워드(예를 들자면, 시스템 관리자)를 입력하고 'Continue'를 누릅니다.


To learn more about Apple’s code signing technology, read Code Signing Guide.
Apple's의 코드 사인 기술에 대해 더 배우려면, 'Code Signing Guide'를 읽으세요.


Troubleshooting

(트러블 슈팅; 문제점이 나타났을 때 해결 방법을 찾기)


If the team provisioning profile doesn’t appear in the Code Signing Identity menu, choose a certificate under Automatic Profile Selector. Then try to choose your development certificate under the team provisioning profile again.
만약 team provisioning profile 이 'Code Singning Identity' 메뉴에 나타나지 않으면, 'Automatic Profile Selector'에 인증서를 선택하세요. 다음에 team provisioning profile에서 다시 당신의 개발자 인증서 선택을 시도하세요.

If a code signing error occurs when you build the app, verify that the Code Signing Identity build setting is correct. Also, check whether the Code Signing Identity build setting is set at the project or target level (target settings override project settings). To troubleshoot the Code Signing Identity build setting, read “Build and Code Signing Issues.”

만약 당신의 앱을 빌드 할때 코드 사인 오류가 나타나면, 코드 사인 식별자 빌드 셋팅이 정확한지 확인하세요. 또한, 프로젝트 또는 타겟 레벨에서 코드 사인 식별 빌드 셋팅이 되었는지 확인하세요. 코드 사인 식별자 빌드 셋팅 트러블 슈팅하기는, 'Build 와 코드 사인 논점'을 읽으세요.


Launching Your iOS App on the Device
장치에 당신의 iOS App 출시.

After provisioning your device for development, you can tell Xcode to launch the app on the device. You do this by changing the run destination setting in the Scheme pop-up menu before you build the app. When you connect an iOS device with a valid provisioning profile to your Mac, the name of the device appears as an option in the destination Scheme pop-up menu.

개발을 위한 당신의 장치를 프로비저닝 한 후, 장치에 당신의 앱이 출시되었음을 Xcode에 알릴 수 있습니다. 앱을 빌드하기전 'Scheme' 팝업 메뉴에서 'run destination' 셋팅 변경을 통해 이것을 할 수 잇ㅅ브니다. 당신이 iOS 장치와 유효한 provisioning profile을 당신의 Mac에 연결했을 때, 장치의 이름이 'destination Scheme' 팝업 메뉴에 옵션처럼 나타납니다. 


You should also test your app in iOS Simulator using Instruments and other tools before distributing your app. Read iOS Simulator User Guide for details on how to use iOS Simulator to test your app.
당신은 또한 당신의 앱을 배포하기전 'iOS Simulator'속에서 주요 기구와 다른 도구를 이용해 당신의 앱을 테스트해야합니다. iOS Simulator를 이용한 당신의 앱 테스트의 자세한 방법은 'iOS Simulator 이용 가이드'를 읽으세요


Troubleshooting

(트러블 슈팅; 문제점에 대한 해결 방법을 찾아 해결하기)

There are several reasons why your app may not run on a device. Often the configuration of your project doesn’t match the configuration of your device. Assuming that you followed and verified the steps in this chapter, check the Xcode project settings. To verify that the iOS Deployment Target is less than or equal to the iOS software version installed on your device, read “Setting the Deployment Target.”

당신의 앱이 장치에서 어째서 동작하지 않는 지에 대한 몇몇 이유입니다. 당신의 프로젝트 설정은 종종 당시의 장치 설정과 맞지 않습니다. 가령 이장의 단계를 따르고 확인했으면, Xcode 프로젝트 셋팅을 확인합니다. iOS Deployment Target이 장치에 설치된 iOS 소프트웨어 버전이 작거나 같은지 확인하고, 'Setting the Deploy Target'을 읽습니다.


Recap
요약정리

In this chapter, you learned how to use the team provisioning profile, which Xcode creates and manages for you, to provision your devices for development and code sign your app. You also learned how to launch your app on an iOS device.
이 장에서, 당신은 team provisioning profile 이용하고, 당신을 위해 Xcode가 어느것을 생성하고 관리지하는 지, 당신의 앱 코드 사인고 개발을 위핸 장치 프로비전 하는 방법을 배웟씁니다. 당신은 또한 iOS 장치에서 당신의 앱을 출시하는 방법을 배웠습니다.

Posted by 창업자닉군
,