我可以将匹配的结果传递给快速通道中的sh吗?

时间:2016-09-26 19:59:33

标签: fastlane

我喜欢这样的:

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

我是否可以从匹配中获取代码签名标识和配置文件,而不是像这样手动设置它们?

1 个答案:

答案 0 :(得分: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                           |
+---------------------+------------------------------------------------+--------------------------------------+