FastlaneCore::Helper::AppcenterHelper:Class 的未定义局部变量或方法“所有者”(NameError)

undefined local variable or method `owner' for FastlaneCore::Helper::AppcenterHelper:Class (NameError)

当我尝试使用 Fastlane 将 iOS 应用分发到 appcenter 时,我收到类似 [!] undefined local variable or method `owner' for FastlaneCore::Helper::AppcenterHelper:Class (NameError) 的错误。

+--------+----------------+------------+ |快车道总结 | +------+----------------+------------+ |步骤 |行动 |时间(秒) | +------+----------------+------------+ | | appcenter_upload | 1 | +------+----------------+------------+

[11:49:06]:fastlane 完成但有错误

正在 fastlane/fastlane 上寻找相关的 GitHub 问题...

➡️appcenter上传错误 https://github.com/fastlane/fastlane/issues/14907 [关闭] 1 5 天前

您可以 ⌘ + 双击链接直接在浏览器中打开它们。 /Users/capgemini/.gem/gems/fastlane-plugin-appcenter-1.0.1/lib/fastlane/plugin/appcenter/helper/appcenter_helper.rb:373:in get_app': [!] undefined local variable or methodowner' for FastlaneCore::Helper::AppcenterHelper:Class (NameError) 来自 /Users/capgemini/.gem/gems/fastlane-plugin-appcenter-1.0.1/lib/fastlane/plugin/appcenter/actions/appcenter_upload_action.rb:173:in get_or_create_app' from /Users/capgemini/.gem/gems/fastlane-plugin-appcenter-1.0.1/lib/fastlane/plugin/appcenter/actions/appcenter_upload_action.rb:201:in运行' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/runner.rb:256:in block (2 levels) in execute_action' from /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/actions/actions_helper.rb:50:inexecute_action' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/runner.rb:235:in block in execute_action' from /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/runner.rb:227:inchdir' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/runner.rb:227:in execute_action' from /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/runner.rb:157:intrigger_action_by_name' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/fast_file.rb:154:in method_missing' from Fastfile:51:inblock in parsing_binding' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/lane.rb:33:in call' from /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/runner.rb:49:inblock in execute' 从 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/runner.rb:45:in chdir' from /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/runner.rb:45:inexecute' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/lane_manager.rb:56:in cruise_lane' from /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/command_line_handler.rb:36:inhandle' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/commands_generator.rb:108:in block (2 levels) in run' from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:incall' 来自 /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run' from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:inrun_active_command' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!' from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in运行!' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/commands_generator.rb:333:in run' from /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/commands_generator.rb:41:instart' 来自 /Users/capgemini/.gem/gems/fastlane-2.125.2/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in take_off' from /Users/capgemini/.gem/gems/fastlane-2.125.2/bin/fastlane:23:in' 来自 /Users/capgemini/.gem/bin/fastlane:22:in load' from /Users/capgemini/.gem/bin/fastlane:22:in'

看看下面的link

源代码中有一个错误隐藏了正确的错误。我也经历过我得到:
[!] undefined local variable or methodowner' for FastlaneCore::Helper::AppcenterHelper:Class (NameError)

不管我改了什么。我的 "real" 错误是 app_name(而且 owner_name 很难弄清楚)是错误的。这 post 帮助了我。希望能帮到您解决实际问题。