📂
JackyChen的精神時光屋
  • About
  • iPlayground
    • iPlayground 2020
      • iPlayground submit 2020
    • iPlayground 2019
      • Untitled
      • iPlayground submit 2019
  • WWDC
    • 2020 WWDC
    • 2019 WWDC
    • 2018 WWDC
      • What's New in Testing
      • BusinessChat
    • 2016 WWDC
      • What's New in the Apple Push Notification Service
  • AR/VR
    • ARKit plugin at Unity
    • ARKit
    • AR/VR 實習作品分享
    • Google Blocks
  • CI/CD
    • Continous Integretion for Unity
    • 拯救地球大作戰-自動化設定注意事項
    • Provisioning Profile 自動化更新
    • Make ipa file with personal team of code sign
    • Xcode11 版號問題
  • Test
    • Cucumberish
    • XCUITest
    • Design Patterns in XCUITest
    • Unit Test
  • User Interface
    • IBDesignable 和 IBInspectable
    • iOS 使用貝塞爾曲線繪製路徑
    • UIStatusBarStyle
    • iOS Devices Specification
    • Vector Image
    • Launch Screen
    • Haptic Feedback
    • Good Works for Storyboard
    • Cell 展開收合效果
    • ScrollView
    • Swift lazy
    • Lottie
  • Foundation
    • Adding a Custom Font to Your App
    • WKWebView how to work with javascript
    • Global Central Dispatch
    • HealthKit
    • Error Handling
    • Debug with LLDB
    • Application Lifecycle
    • Swift Codable
    • Push Notifications
    • AVFoudation
  • Others
    • C語言指標概念
    • UnsafePointer(Swift)
    • iOS News Reference
    • Blender
    • Free Web Server
    • Firebase
    • Firebase migration
    • GraphQL
    • Ruby
    • zsh command line
    • visudo
  • Security
    • 課程:App資安規劃與實作
    • KeyChain
    • iOS反組譯程序
    • Arxan
  • Git
    • Git
    • xcodeproj 合併衝突
    • Pull Request
  • Machine Learning
    • CoreML
    • Vision
    • Turi Create
  • 待分類
    • ABI Stability and More
    • Mirror
    • Carthage
    • SwiftUI
    • MVVM
    • OpenSSL
    • USDZ Convert
    • Nexus repository and gitlfs
Powered by GitBook
On this page
  • 教學連結
  • Sigh
  • cert_id
  • envirornment variable
  • ProvisionQL

Was this helpful?

  1. CI/CD

Provisioning Profile 自動化更新

Previous拯救地球大作戰-自動化設定注意事項NextMake ipa file with personal team of code sign

Last updated 5 years ago

Was this helpful?

教學連結

    • Quick Look plugin for apps and provisioning profile files

Sigh

fastlane sigh \
--force \
--cert_id $CERT_ID \  # You can get cert_id by Spaceshipe
--username $APPLE_ID \
--provision_name Sample_${PROVISION_VALID_YEAR}_InHouse \
--app_identifier tw.com.cathaylife.SampleAppForCI \
--team_id $DEV_PORTAL_TEAM_ID \
--filename Sample_${PROVISION_VALID_YEAR}_InHouse.mobileprovision
  • 注意:在套用新的Cert產生安裝描述檔之前,舊的Cert先不要從Keychain移除,否則fastlane會判別為不同的檔案,進而另外建立一個後面有流水編號且同名的安裝描述檔。等所有安裝描述檔建立完後再移除舊的Cert即可,記得要移除,否則Xcode吃不到新的Cert。

cert_id

require 'spaceship'
Spaceship.login('your@appleid') 
Spaceship.client.team_id='your team id'

Spaceship.certificate.in_house.all.each do |cert|
    puts cert.id
    puts cert.expires
end

envirornment variable

Set environment variables on ~/.bash_profile file and it will always valid when terminal launches.

  • set

export APPLE_ID=ggyy@gmail.com
  • show variables

printenv
  • show some variable

printenv APPLE_ID
or
echo ${APPLE_ID}

ProvisionQL

brew cask install provisionql
如何在 Fastlane 中使用現有的證書進行自動化的動作
Fastlane sigh
Spaceship
ProvisionQL