【问题标题】:Codemagic post-clone script failed on base64 command not foundCodemagic 后克隆脚本因找不到 base64 命令而失败
【发布时间】:2019-11-07 09:05:14
【问题描述】:

我正在尝试通过自定义脚本解码 Codemagic 上的环境变量值并得到下一个错误:

post-clone script failed on base64 decode. The command could not be found

我使用的脚本:

#!/bin/sh

echo $ANDROID_FIREBASE_JSON | base64 --decode > $FCI_BUILD_DIR/android/app/google-services.json
echo $IOS_FIREBASE_JSON | base64 --decode > $FCI_BUILD_DIR/ios/Runner/GoogleService-Info.plist

【问题讨论】:

    标签: flutter continuous-integration codemagic


    【解决方案1】:

    可能是您在脚本中复制粘贴了一些浏览器无法呈现的 Unicode 字符。只需删除base64 命令和--decode 选项之间的空格,然后将其添加回来。

    您可以在本文中找到更多信息:https://medium.com/flutter-community/how-to-load-firebase-config-in-codemagic-with-environment-variables-e36e0378b7e6

    【讨论】:

      猜你喜欢
      • 2015-12-01
      • 2020-11-15
      • 2021-09-26
      • 2021-12-29
      • 1970-01-01
      • 2012-01-10
      • 1970-01-01
      • 1970-01-01
      • 2021-10-23
      相关资源
      最近更新 更多