fastlane
2016-09-26 76 views 0 likes 
0

我喜歡道:我可以在fastlane中將比賽結果傳遞給sh嗎?

lane :beta do 
    match(type: "appstore") 
    sh "ember cdv:build 
    --platform ios 
    --code-sign-identity='iPhone Distribution: Cannla Pte Ltd (856AP7L2GS)' 
    --provisioning-profile='5feb0088-c4dd-4ca2-84e6-4bbf7f319248' 
    --release" 
    pilot 
end 

我可以從比賽的代碼簽名身份和供給曲線,而不是手動設置他們這樣嗎?

回答

2

匹配會自動填充你的環境變量。請查看fastlane code signing docs瞭解哪些類型的變量會暴露出來,以及如何在Xcode項目中使用它們。

默認情況下,這些全都是暴露你

+---------------------+------------------------------------------------+--------------------------------------+ 
|          Installed Provisioning Profile          | 
+---------------------+------------------------------------------------+--------------------------------------+ 
| Parameter   | Environment Variable       | Value        | 
+---------------------+------------------------------------------------+--------------------------------------+ 
| App Identifier  |            | me.themoji.release     | 
| Type    |            | appstore        | 
| Profile UUID  | sigh_me.themoji.beta_appstore     | 22a19b3a-7cf6-4997-95f2-9cbb4d33fe7e | 
| Profile Name  | sigh_me.themoji.beta_appstore_profile-name  | match AppStore me.themoji.release | 
| Development Team ID | sigh_me.themoji.beta_appstore_team-id   | N8XAAASEU2       | 
+---------------------+------------------------------------------------+--------------------------------------+ 
環境變量
相關問題