ios개발/함수형 프로그래밍

<ios개발> 프로비저닝 프로파일

studying develop 2020. 4. 28. 21:42

[https://medium.com/@abhimuralidharan/what-is-a-provisioning-profile-in-ios-77987a7c54c2] 한글보다, 여기 설명이 더 자세한거 같다.

Why Provisioning Profiles?

Unlike Android, you can’t install any app on an iOS device. It has to be signed by Apple first. However, when you’re developing an app, you probably want to test it before sending it to Apple for approval. Provisioning profile act as a link between the device and the developer account. During development, you choose which devices can run your app and which app services your app can access. A provisioning profile is downloaded from your developer account and embedded in the app bundle, and the entire bundle is code-signed. A Development Provisioning Profile must be installed on each device on which you wish to run your application code. If the information in the provisioning profile doesn’t match certain criteria, your app won’t launch.

Each Development Provisioning Profile will contains:

  • Development Certificates — development certificate. These are for developers who want to test the app on a physical device while writing code.
  • Unique Device Identifiers (List of devices that the app can run on)
  • an App ID (this can include a * wild card to be used for many applications with similar bundle identifiers). — An App ID is a two-part string used to identify one or more apps from a single development team.

Devices specified within the provisioning profile can be used for testing only by those individuals whose iPhone Development Certificates are included in the profile. A single device can contain multiple provisioning profiles.

 

그러니까, 결국 프로비저닝 파일은, 어떤 apple id를 가진 사람이 , 어떤 특정 디바이스에서 어떤 인증서로 실행할지, 미리 프로비저닝 파일이 알게해서, 그걸 컴파일 타임때 적용되어 설치되게 하는 것이라 보면 된다. 그럼으로서, 어떤 apple id를 가진 사람이 어떤 기기에서 어떤 인증서로 앱을 실행시킬수 있다.