step 0
https://developer.apple.com
Account
Certificates,IDs & Profiles
step 1-1. for iOS Distribution
Certificates
+
iOS Distribution (App Store Connect and Ad Hoc)
Continue
upload CSR file(.certSigningRequest) created as "learn more"
Continue
Download (.cer), double click to install
step 1-2. for iOS App Development
Certificates
+
iOS App Development
Continue
upload CSR file(.certSigningRequest) created as "learn more"
Continue
Download (.cer), double click to install
step 2.
Profiles
+
Distribution > App Store Connect / Development > iOS App Development
Continue
Select an App ID
Continue
Select Certificate (latest date or most bottom item)
Input PP Name: i.e., PPDIS240406 / PPDEV240406
Generate
Download (. mobileprovision), double click to install
stpe 3.
Xcode Build Settings - search prof
replace Provisioning Profiles of Debug and Release
if ask for CSR password while make archive, input Mac login password