fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
38.83k stars 5.64k forks source link

Error while using plugin #21450

Closed luco closed 10 months ago

luco commented 10 months ago

New Issue Checklist

Issue Description

I used to use a Diawi plugin to upload. Not that the plugin is done, I'm trying to add a plugin via github (https://github.com/luco/fastlane-plugin-diawi-plugin). It installs but when I try to run a lane it gives error

Command executed

fastlane beta

Complete output when running fastlane, including the stack trace and command used
[11:19:05]: fastlane detected a Gemfile in the current directory
[11:19:05]: However, it seems like you didn't use `bundle exec`
[11:19:05]: To launch fastlane faster, please use
[11:19:05]:
[11:19:05]: $ bundle exec fastlane beta
[11:19:05]:
[11:19:05]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[11:19:06]: Installing Ruby gem 'fastlane-plugin-diawi'...
[11:19:11]: Found gem "fastlane-plugin-diawireborn" instead of the required name "fastlane-plugin-diawi"
[11:19:12]: Successfully installed 'fastlane-plugin-diawi'
[11:19:12]: Error loading plugin 'fastlane-plugin-diawi': cannot load such file -- fastlane/plugin/diawi

My Pluginfile

# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

gem 'fastlane-plugin-increment_version_code'
gem 'fastlane-plugin-diawi', git: 'https://github.com/luco/fastlane-plugin-diawi-plugin.git'

Environment

| Key                         | Value                                                      |
| --------------------------- | ---------------------------------------------------------- |
| OS                          | 13.4                                                       |
| Ruby                        | 3.1.4                                                      |
| Bundler?                    | false                                                      |
| Git                         | git version 2.39.2 (Apple Git-143)                         |
| Installation Source         | /opt/homebrew/Cellar/fastlane/2.213.0/libexec/bin/fastlane |
| Host                        | macOS 13.4 (22F66)                                         |
| Ruby Lib Dir                | /opt/homebrew/Cellar/ruby@3.1/3.1.4/lib                    |
| OpenSSL Version             | OpenSSL 3.1.0 14 Mar 2023                                  |
| Is contained                | false                                                      |
| Is homebrew                 | true                                                       |
| Is installed via Fabric.app | false                                                      |
| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/                |
| Xcode Version               | 14.3                                                       |
| Swift Version               | 5.8
luco commented 10 months ago

Managed to fix it by updating Ruby with this comment: https://github.com/fastlane/fastlane/issues/20147#issuecomment-1519038940