提问人:Đức Nguyễn 提问时间:11/17/2023 更新时间:11/17/2023 访问量:12
快车道 -macos:Unity 将 iap 从快车道上传到 testflight 有时会出错
Fast lane -macos : Unity upload iap from fast lane to testflight sometimes error
问:
我使用 gitlab CI/CD 构建项目 unity,然后使用 fastlane 将其上传到 testflight 服务器。看起来不错。但有时我会遇到错误
/usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/api_client.rb:244:in `handle_error': Authentication credentials are missing or invalid. - No valid credentials found in the request. (Spaceship::UnauthorizedAccessError)
率 ~5% 总构建。但我不知道为什么,所有其他构建都正常工作,再次构建时没有变化。这在构建时会引起一些烦人。 更多信息:Fastlane 构建错误,但构建在 10 ~ 15 分钟后仍进入 testflight。 感谢您阅读本文。这是我的日志错误。
14:45:42]: [32mModified Targets:[0m
[14:45:42]: [32m * Unity-iPhone[0m
[14:45:42]: [32m * Unity-iPhone Tests[0m
[14:45:42]: [32m * UnityFramework[0m
[14:45:42]: [32mModified Build Configurations:[0m
[14:45:42]: [32m * Release[0m
[14:45:42]: [32m * ReleaseForProfiling[0m
[14:45:42]: [32m * ReleaseForRunning[0m
[14:45:42]: [32m * Debug[0m
[14:45:42]: [32m * Release[0m
[14:45:42]: [32m * ReleaseForProfiling[0m
[14:45:42]: [32m * ReleaseForRunning[0m
[14:45:42]: [32m * Debug[0m
[14:45:42]: [32m * Release[0m
[14:45:42]: [32m * ReleaseForProfiling[0m
[14:45:42]: [32m * ReleaseForRunning[0m
[14:45:42]: [32m * Debug[0m
[14:45:42]: Cruising back to lane 'ios beta' 🚘
[14:45:42]: [32m----------------------------------------------------[0m
[14:45:42]: [32m--- Step: Switch to ios update_build_number lane ---[0m
[14:45:42]: [32m----------------------------------------------------[0m
[14:45:42]: Cruising over to lane 'ios update_build_number' 🚖
[14:45:42]: [32m--------------------------------------------[0m
[14:45:42]: [32m--- Step: latest_testflight_build_number ---[0m
[14:45:42]: [32m--------------------------------------------[0m
[14:45:42]: Login to App Store Connect (#########@gmail.com) //sr that
[14:45:44]: Login successful
+-----------------------------+
| [33mLane Context[0m |
+------------------+----------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios beta |
+------------------+----------+
+-------------------------------------------------------------+
| [32mfastlane summary[0m |
+------+----------------------------------------+-------------+
| Step | Action | Time (in s) |
+------+----------------------------------------+-------------+
| 1 | default_platform | 0 |
| 2 | Switch to ios update_sign lane | 0 |
| 3 | update_code_signing_settings | 0 |
| 4 | Switch to ios update_build_number lane | 0 |
| 💥 | [31mlatest_testflight_build_number[0m | 62 |
+------+----------------------------------------+-------------+
[14:46:45]: [31mfastlane finished with errors[0m
Looking for related GitHub issues on fastlane/fastlane...
➡️ [33mwhen I run cordova run , it have a error[0m
https://github.com/fastlane/fastlane/issues/7467 [[32mclosed[0m] 2 💬
14 May 2017
➡️ [33m"Could not find app with app identifier" when init Mac project[0m
https://github.com/fastlane/fastlane/issues/7480 [[32mclosed[0m] 5 💬
22 Mar 2017
➡️ [33mHow can I turnoff the password re-enter and just get the error when the password is incorrect?[0m
https://github.com/fastlane/fastlane/issues/7484 [[32mclosed[0m] 5 💬
24 May 2017
and 19927 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60refresh%21%27%20for%20nil%0A%0A%20%20%20%20%20%20%20%20%20%20%40token.refresh%21%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5E%5E%5E%5E%5E%5E%5E%5E%5E&type=Issues&utf8=✓
🔗 You can ⌘ + double-click on links to open them directly in your browser.
/usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/api_client.rb:188:in `rescue in with_asc_retry': \e[31m[!] undefined method `refresh!' for nil:NilClass (NoMethodError)
@token.refresh!
^^^^^^^^^\e[0m
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/api_client.rb:165:in `with_asc_retry'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/api_client.rb:105:in `get'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/testflight/testflight.rb:22:in `get_apps'
from /usr/local/Cellar/[email protected]/3.1.4/lib/ruby/3.1.0/forwardable.rb:238:in `get_apps'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/models/app.rb:75:in `all'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/models/app.rb:81:in `find'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:53:in `get_build_info'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:23:in `get_build_version_and_number'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:12:in `run'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:35:in `block (2 levels) in parsing_binding'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:22:in `block (2 levels) in parsing_binding'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/bin/fastlane:23:in `<top (required)>'
from /usr/local/Cellar/fastlane/2.216.0/libexec/bin/fastlane:25:in `load'
from /usr/local/Cellar/fastlane/2.216.0/libexec/bin/fastlane:25:in `<main>'
/usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/api_client.rb:244:in `handle_error': Authentication credentials are missing or invalid. - No valid credentials found in the request. (Spaceship::UnauthorizedAccessError)
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/client.rb:932:in `block in send_request'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/client.rb:687:in `with_retry'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/client.rb:928:in `send_request'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/client.rb:772:in `request'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/api_client.rb:106:in `block in get'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/api_client.rb:166:in `with_asc_retry'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/api_client.rb:105:in `get'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/testflight/testflight.rb:22:in `get_apps'
from /usr/local/Cellar/[email protected]/3.1.4/lib/ruby/3.1.0/forwardable.rb:238:in `get_apps'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/models/app.rb:75:in `all'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/spaceship/lib/spaceship/connect_api/models/app.rb:81:in `find'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:53:in `get_build_info'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/actions/app_store_build_number.rb:23:in `get_build_version_and_number'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/actions/latest_testflight_build_number.rb:12:in `run'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:35:in `block (2 levels) in parsing_binding'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:204:in `try_switch_to_lane'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:146:in `trigger_action_by_name'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:22:in `block (2 levels) in parsing_binding'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
from /usr/local/Cellar/fastlane/2.216.0/libexec/gems/fastlane-2.216.0/bin/fastlane:23:in `<top (required)>'
from /usr/local/Cellar/fastlane/2.216.0/libexec/bin/fastlane:25:in `load'
from /usr/local/Cellar/fastlane/2.216.0/libexec/bin/fastlane:25:in `<main>'
section_end:1698306406:step_script
[0Ksection_start:1698306406:cleanup_file_variables
[0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m
section_end:1698306406:cleanup_file_variables
[0K[31;1mERROR: Job failed: exit status 1
[0;m
答: 暂无答案
评论