卸载/重新安装旧版本的Fastlane后,它似乎仍在运行最新版本。
我最近将Fastlane更新到版本2.114,但是当我运行离子ios构建脚本时,它在get_provisioning_profile步骤上失败。在运行更新之前,它运行良好。
我使用gem卸载fastlane卸载了它,然后使用gem install fastlane -v 2.110.0重新安装了它,gem list fastlane仅显示了版本2.110.0。
然后我再次运行脚本,并且get_provisioning_profile步骤中的框仍显示版本2.114.0,并且该步骤失败并出现相同的错误。
有人知道如何使Fastlane使用2.110.0版本而不是最新版本吗?
要卸载/重新安装Fastlane:
gem uninstall fastlane
gem install fastlane -v 2.110.0
宝石列表快速通道的结果:
*** LOCAL GEMS ***
commander-fastlane (4.4.6)
fastlane (2.110.0)
预期结果:
+-------------------------------------+--------------------------+
| Summary for sigh 2.110.0 |
+-------------------------------------+--------------------------+
和Fastlane脚本能够像以前一样成功工作。
实际结果:
显示v2.114的Fastlane框之一的示例:
+-------------------------------------+--------------------------+
| Summary for sigh 2.114.0 |
+-------------------------------------+--------------------------+
Fastlane错误消息:
[13:47:24]: No existing profiles found, that match the certificates you have installed locally! Creating a new provisioning profile for you
[13:47:25]: No certificates for filter: Certificate ID: '433NN4XZ66'
[13:47:25]: Could not find a matching code signing identity for type 'AdHoc'. It is recommended to use match to manage code signing for you, more information on https://codesigning.guide. If you don't want to do so, you can also use cert to generate a new one: https://fastlane.tools/cert
[编辑:2019-01-24]
fastlane env输出(它表示v2.112.0,因为这是在我尝试了其他各种想法之后,包括安装另一个版本,但仍然有问题):
### Stack
| Key | Value |
| --------------------------- | ------------------------------------------- |
| OS | 10.14.2 |
| Ruby | 2.5.1 |
| Bundler? | false |
| Git | git version 2.18.0 |
| Installation Source | ~/.rbenv/versions/2.5.1/bin/fastlane |
| Host | Mac OS X 10.14.2 (18C54) |
| Ruby Lib Dir | ~/.rbenv/versions/2.5.1/lib |
| OpenSSL Version | OpenSSL 1.0.2p 14 Aug 2018 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 10.1 |
### System Locale
| Variable | Value | |
| -------- | ----------- | - |
| LANG | en_GB.UTF-8 | ✅ |
| LC_ALL | | |
| LANGUAGE | | |
### fastlane files:
**No Fastfile found**
**No Appfile found**
### fastlane gems
| Gem | Version | Update-Status |
| -------- | ------- | ------------------ |
| fastlane | 2.112.0 | Update available |
### Loaded fastlane plugins:
**No plugins Loaded**
答案 0 :(得分:0)
尝试添加
fastlane_version“ 2.110.0”
Fastfile开头