如何使用fastlane和circleci将ipa文件上传到Dropbox?

问题描述 投票:1回答:1

我想使用FastLane将IPA文件上传到Dropbox。我按照Dropbox文档:https://github.com/tommy071/fastlane-plugin-publish_dropbox和Circleci已成功运行,但我在我的保管箱目录中找不到IPA文件。

代码如下:

- run: bundle exec fastlane add_plugin publish_dropbox

publish_dropbox(
    file_path: '/Users/distiller/project/output/gym/xxx.ipa',
    dropbox_path: 'https://www.dropbox.com/home/xxx%20xxx%20xx%20Folder/Development/xxx-IOS',
    app_key: 'xxxxxx',
    app_secret: 'xxxxx'
  )

circleci的进展情况如下:

enter image description here

另外,我注意到这里有一个dropbox文档。我不知道它是否有用。我应该添加我的项目吗?

Dropbox文档:https://www.dropbox.com/developers/documentation/swift

ios dropbox ipa circleci fastlane
1个回答
0
投票

根据您的api密钥和密钥创建的令牌存储在钥匙串中。您需要传递keychain_password或设置DROPBOX_KEYCHAIN_PASSWORD环境变量。

在CircleCI中,除非您在setup_circle_ci操作中更改密钥链密码,否则密钥链密码为空字符串。

正如文档所说:

如果没有提供,插件会要求输入密码

但是插件无法在CI中询问,因为终端不是交互式的。

© www.soinside.com 2019 - 2024. All rights reserved.