Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> iOS

วิธีต่ออายุ Distribution Certificate สำหรับ iOS

ขั้นตอนต่ออายุ Distribution Certificate บน Mac

ขั้นตอนการทำ

  1. เปิด Keychain Access (Spotlight → Keychain Access)
  2. เมนู Keychain Access → Certificate Assistant → Request a Certificate from a Certificate Authority
  3. กรอกข้อมูล: Name, Email → เลือก Saved to disk → Continue
  4. บันทึกไฟล์ .CSR (Certificate Signing Request) ไว้ที่ต้องการ
  5. เข้า developer.apple.com → Certificates, IDs & Profiles
  6. เลือก Certificates → Production → กด +
  7. เลือก App Store and Ad Hoc → Continue
  8. อัปโหลดไฟล์ .CSR ที่สร้างไว้ → Generate
  9. ดาวน์โหลด Certificate (.cer) → ดับเบิลคลิกติดตั้งใน Keychain

หลังต่ออายุแล้ว

  • สร้าง Provisioning Profile ใหม่ (หรือ Edit Profile เดิม → Generate)
  • ดาวน์โหลด Profile ใหม่ → ติดตั้ง (ดับเบิลคลิก)
  • ใน Xcode: Preferences → Accounts → Manage Certificates → Refresh
  • เลือก Profile ใหม่ใน Project Settings → Signing & Capabilities

เคล็ดลับ

  • Backup Private Key ใน Keychain (Export .p12) ไว้กันสูญหาย
  • Certificate หมดอายุ 1 ปี ต้องต่ออายุก่อนหมด
  • ใช้ Automatic Signing ใน Xcode จะจัดการให้อัตโนมัติ (แนะนำ)