Fastlane iOS 突然出现错误:muninitialized constant Fastlane::Actions::SharedValues::KEYCHAIN_PATH

如何解决Fastlane iOS 突然出现错误:muninitialized constant Fastlane::Actions::SharedValues::KEYCHAIN_PATH

我在 AZURE 云中设置了 fastline,直到一周前它都运行良好 突然所有构建都失败了,这是在我设置新的 FASTLANE_SESSION 之后,我通常每个月都会这样做

getting error: muninitialized constant Fastlane::Actions::SharedValues::KEYCHAIN_PATH 

快车道输出:

堆栈跟踪和命令,使用

 2021-01-28T10:17:33.7609670Z /Users/runner/hostedtoolcache/Ruby/3.0.0/x64/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
2021-01-28T10:17:33.7629520Z /Users/runner/hostedtoolcache/Ruby/3.0.0/x64/lib/ruby/gems/3.0.0/gems/bundler-1.17.3/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
2021-01-28T10:17:33.7630880Z [10:17:33]: [33mGet started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile[0m
2021-01-28T10:17:36.2135810Z [10:17:36]: [33mGenerating fastlane environment output,this might take a few seconds...[0m
2021-01-28T10:17:36.4575750Z 🚫 fastlane environment 🚫
 
 ### Stack
 
 | Key                         | Value                                            |
 | --------------------------- | ------------------------------------------------ |
 | OS                          | 10.15.7                                          |
 | Ruby                        | 3.0.0                                            |
 | Bundler?                    | false                                            |
 | Git                         | git version 2.30.0                               |
 | Installation Source         | ~/hostedtoolcache/Ruby/3.0.0/x64/bin/fastlane    |
 | Host                        | Mac OS X 10.15.7 (19H114)                        |
 | Ruby Lib Dir                | ~/hostedtoolcache/Ruby/3.0.0/x64/lib             |
 | OpenSSL Version             | OpenSSL 1.1.1i  8 Dec 2020                       |
 | Is contained                | false                                            |
 | Is homebrew                 | false                                            |
 | Is installed via Fabric.app | false                                            |
 | Xcode Path                  | /Applications/Xcode_12.3.app/Contents/Developer/ |
 | Xcode Version               | 12.3                                             |
 
 
 ### System Locale
 
 | Variable | Value       |   |
 | -------- | ----------- | - |
 | LANG     | en_US.UTF-8 | ✅ |
 | LC_ALL   | en_US.UTF-8 | ✅ |
 | LANGUAGE |             |   |
 
 
 ### fastlane files:
 
 `./fastlane/Fastfile`
 
 ```ruby
 #dont send info to google
 opt_out_usage # opt-out of metrics collection
 default_platform(:ios)
 #xcversion(version: "11.1")
 xcode_select("/Applications/Xcode_12.app")
 
 
 platform :ios do
 
 
 
     desc "Ios build "
     lane :release do |options|
             opt_out_usage # opt-out of metrics collection
             debug
    
             #@my_key_name = ENV['IPHONE_DISTRIBUTION']
         
         
            project_name = options[:projectName]
            app_identifier = options[:appIdentifier]
            v_num = options[:versionNumber]
            build_number = options[:buildNumber]
            ftp_path = options[:plistFileFtpBasePath]
            ArtifactsDirectory = options[:ArtifactsDirectory]
            
             create_keychain(
                 name: ENV['IPHONE_DISTRIBUTION'],default_keychain: true,unlock: true,timeout: false,password: ENV['CERTIFICATE_PASSWORD'])
 
             import_certificate(
                 certificate_path: ENV['CERTIFICATE_PATH_P12'],certificate_password: ENV['CERTIFICATE_PASSWORD'],keychain_name: ENV['IPHONE_DISTRIBUTION'],keychain_password: ENV['CERTIFICATE_PASSWORD'],log_output: true)
 
             import_certificate(
                 certificate_path: ENV['CERTIFICATE_PATH_CER'],log_output: true)
                
 
            increment_version_number(version_number: v_num)
            bundle_name = "#{project_name}_#{build_number}"
            bundle_version = "#{v_num}_#{build_number}"
            update_info_plist(
                    plist_path:"xxxridxxxnetics/Info.plist",block: proc do |plist|
                            plist[:CFBundleVersion] = bundle_version
                            plist[:CFBundleDisplayName] = bundle_name
                    end
            )
            
            
             
            sigh(
                    username: ENV['APPLE_ID'],app_identifier: app_identifier,team_id: ENV['TEAM_ID']
 
            )
            
            profile_name_found = lane_context[SharedValues::SIGH_NAME]
            update_code_signing_settings(profile_name: profile_name_found)
            
            update_code_signing_settings(profile_name: profile_name_found)
            
            automatic_code_signing(code_sign_identity:"iPhone Distribution",use_automatic_signing: false)
 
            #to update PRODUCT_BUNDLE_IDENTIFIER,use:
            update_app_identifier(
                xcodeproj: "Hybridxxxnetics.xcodeproj",plist_path: "Hybridxxxnetics/Info.plist",app_identifier: app_identifier
            )
            
 
            build_app(
                  workspace: "Hybridxxxnetics.xcworkspace",output_name:"#{project_name}_#{v_num}_#{build_number}.ipa",output_directory:"#{ArtifactsDirectory}",export_options: {
                        manifest: {
                                appURL: "#{ftp_path}/#{project_name}_#{v_num}_#{build_number}.ipa",displayImageURL: "https://download.xxxnetics.com/release/product-qa/ios/Test/xxxPush57.png",fullSizeImageURL: "https://download.xxxnetics.com/release/product-qa/ios/Test/xxxPush512.png"
                        }
                  }
           )
          
 
     end
 end
 ```
 
 
 `./fastlane/Appfile`
 
 ```ruby
 #app_identifier("com.xxxnetics.xxxBPEREnt")
 #apple_id("devops@xxxnetics.com")
 #itc_team_id("433380") # App Store Connect Team ID
 #team_id("5E6D333C5B") # Developer Portal Team ID```
 
 
 ### fastlane gems
 
 | Gem      | Version | Update-Status      |
 | -------- | ------- | ------------------ |
 | fastlane | 2.54.1  | 🚫 Update available |
 
 
 ### Loaded fastlane plugins:
 
 **No plugins Loaded**
 
 
 Loaded gems
 
 | Gem                       | Version      |
 | ------------------------- | ------------ |
 | did_you_mean              | 1.5.0        |
 | slack-notifier            | 1.5.1        |
 | atomos                    | 0.1.3        |
 | CFPropertyList            | 2.3.6        |
 | claide                    | 1.0.3        |
 | colored2                  | 3.1.2        |
 | nanaimo                   | 0.3.0        |
 | xcodeproj                 | 1.19.0       |
 | rouge                     | 2.0.7        |
 | xcpretty                  | 0.3.0        |
 | terminal-notifier         | 1.8.0        |
 | unicode-display_width     | 1.7.0        |
 | terminal-table            | 1.8.0        |
 | plist                     | 3.6.0        |
 | public_suffix             | 4.0.6        |
 | addressable               | 2.7.0        |
 | multipart-post            | 2.0.0        |
 | word_wrap                 | 1.0.0        |
 | tty-screen                | 0.5.1        |
 | babosa                    | 1.0.4        |
 | colored                   | 1.2          |
 | highline                  | 1.7.10       |
 | commander-fastlane        | 4.4.6        |
 | excon                     | 0.78.1       |
 | faraday                   | 0.17.3       |
 | unf_ext                   | 0.0.7.7      |
 | unf                       | 0.1.4        |
 | domain_name               | 0.5.20190701 |
 | http-cookie               | 1.0.3        |
 | faraday-cookie_jar        | 0.0.7        |
 | fastimage                 | 2.2.1        |
 | gh_inspector              | 1.1.3        |
 | uber                      | 0.1.0        |
 | declarative               | 0.0.20       |
 | declarative-option        | 0.1.0        |
 | representable             | 3.0.4        |
 | retriable                 | 3.1.2        |
 | mini_mime                 | 1.0.2        |
 | jwt                       | 2.2.2        |
 | multi_json                | 1.15.0       |
 | signet                    | 0.14.1       |
 | memoist                   | 0.16.2       |
 | os                        | 1.1.1        |
 | googleauth                | 0.15.0       |
 | httpclient                | 2.8.3        |
 | rexml                     | 3.2.4        |
 | webrick                   | 1.7.0        |
 | google-apis-core          | 0.2.1        |
 | gems                      | 1.2.0        |
 | google-apis-discovery_v1  | 0.1.0        |
 | thor                      | 1.1.0        |
 | google-apis-generator     | 0.1.2        |
 | google-api-client         | 0.53.0       |
 | json                      | 2.5.1        |
 | mini_magick               | 4.5.1        |
 | multi_xml                 | 0.6.0        |
 | rubyzip                   | 1.3.0        |
 | security                  | 0.1.3        |
 | xcpretty-travis-formatter | 1.0.1        |
 | dotenv                    | 2.7.6        |
 | bundler                   | 1.17.3       |
 | faraday_middleware        | 0.14.0       |
 | tsort                     | 0.1.0        |
 | set                       | 1.0.1        |
 | uri                       | 0.10.1       |
 | minitest                  | 5.14.2       |
 | zeitwerk                  | 2.4.2        |
 | concurrent-ruby           | 1.1.8        |
 | tzinfo                    | 2.0.4        |
 | i18n                      | 1.8.7        |
 | activesupport             | 6.1.1        |
 | ostruct                   | 0.3.1        |
 | logger                    | 1.4.3        |
 | cgi                       | 0.2.0        |
 | erb                       | 2.2.0        |
 | strscan                   | 3.0.0        |
 | optparse                  | 0.1.0        |
 | stringio                  | 3.0.0        |
 | abbrev                    | 0.1.0        |
 | date                      | 3.1.0        |
 | pathname                  | 0.1.0        |
 | forwardable               | 1.3.2        |
 | tempfile                  | 0.1.1        |
 | delegate                  | 0.2.0        |
 | fileutils                 | 1.5.0        |
 | tmpdir                    | 0.1.1        |
 | shellwords                | 0.1.0        |
 | openssl                   | 2.2.0        |
 | io-nonblock               | 0.1.0        |
 | ipaddr                    | 1.2.2        |
 | io-wait                   | 0.1.0        |
 | timeout                   | 0.1.1        |
 | zlib                      | 1.1.0        |
 | digest                    | 3.0.0        |
 | time                      | 0.1.0        |
 | open-uri                  | 0.1.0        |
 | singleton                 | 0.1.1        |
 | base64                    | 0.1.0        |
 | prettyprint               | 0.1.0        |
 | pp                        | 0.1.0        |
 | open3                     | 0.1.1        |
 | net-protocol              | 0.1.0        |
 | net-smtp                  | 0.2.1        |
 | securerandom              | 0.1.0        |
 | english                   | 0.7.1        |
 | find                      | 0.1.0        |
 | etc                       | 1.2.0        |
 | resolv                    | 0.2.0        |
 
 
 
 *generated on:* **2021-01-28**
 
 [10:17:36]: [32mOpen https://github.com/fastlane/fastlane/issues/new to submit a new issue ✅[0m
 [10:17:36]: Sending Crash/Success information
 [10:17:36]: Learn more at https://github.com/fastlane/fastlane#metrics
 [10:17:36]: No xxxnal/sensitive data is sent. Only sharing the following:
 [10:17:36]: {:fastlane=>1}
 [10:17:36]: This information is used to fix failing tools and improve those that are most often used.
 [10:17:36]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
 
 [32m#######################################################################[0m
 [32m# fastlane 2.172.0 is available. You are on 2.54.1.[0m
 [32m# You should use the latest version.[0m
 [32m# Please update using `sudo gem install fastlane`.[0m
 [32m#######################################################################[0m
 
 [32m2.172.0 Big Improvements[0m
 * [frameit] add support for new iPhone 12-family devices and their new colors (#17940) via Nicolas Mauri
 * [deliver][download_metadata] give precedence to generate metadata from edit version instead of live version (#17813) via Roger Oba
 * [action] git_commit - skip commit if git status is clean for paths (#17913) via Pierre Felgines
 * [spaceship][docs] update spaceship app store connect docs (#17938) via Roger Oba
 [snapshot] fix snapshot not saving image files on Apple Silicon M1 (#17912) via Martin Albrecht
 * [fastlane] add BUDDY environment variables (#17922) via Rafał Sztwiorok
 * [spaceship] adding missing localizations attribute to AppStoreVersion (#17928) via gsavit
 * Update sample issue from being an existing issue,to a fake one. (#17934) via Roger Oba
 * [action] swiftlint - avoid throwing error for new types of reporters. (#17935) via Roger Oba
 * [action] change 'platform' optionality since nil is not really a valid value. (#17936) via Roger Oba
 * [gym] update gym's available export_methods to match xcodebuild's. (#17939) via Roger Oba
 * [frameit] fix the screenshot size of iPhone 8 Plus (#17977) via Rhett Tuan
 * [action] register_device - fix regression that was causing a crash when creating a device that already exists (#17799) via Roger Oba
 * [spaceship] allow 2FA request only in interactive mode (#17854) via Oleg Kohtenko
 * [action] new create_xcframework action (#17844) via José González
 * [CI] support Ruby 2.7 on Circle CI (#17861) via Satoshi Namai
 * [action] artifactory - add option to authenticate using an API key (#17835) via Florian Staine
 * [gym] update identifier used to looked up the bundle ID when parsing provisioning profile (#17865) via John Britton
 * [spaceship] allow for updating of beta groups (#17984) via Krish
 * [snapshot] fix picking up 'SnapshotHelper'-files from DerivedData #17828 (#17833) via David Everlöf
 * [gym] use unzip for IPA files that are too big (#17825) via Theodore Dubois
 * [action] change username for register_devices action to optional (#17942) via Econa77
 * [action] add api bearer to create pull request (#17972) via Thilek Silvadorai
 * [scan] fix scan not failing when disable_xcpretty and fail_build are true (#17946) via Jean Mainguy
 * [scan] fix scan regression caused by not setting `slack_default_payloads` option (#17923) via Roger Oba
 * [gym][scan][snapshot] disable automatic SPM dependencies resolution or skip it entirely (#17916) via Roman Tysiachnik
 * [gym][snapshot] fix gym `use_system_scm` option and add `use_system_scm` option to snapshot (#17832) via Roger Oba
 
 [32m2.171.0 Improvements and Goodbye 2020[0m
 * [itunes-transporter] fix transporter `DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS` env var validation (#17793) via Roger Oba
 * [action] push_to_git_remote - add `--push-options` option to `push_to_git_remote` action (#17791) via Roger Oba
 * [action] pod_push - add `use_json` parameter to `pod_push` action (#17809) via José González
 * [action] spm - add `--enable-code-coverage` option to `spm` action `test` command (#17805) via Andrea Sacerdoti
 * [action] git_commit - skip commit if nothing is staged (#17804) via Pierre Felgines
 * [action] add_git_tag - add option to omit the current lane from tag and message (#17792) via Roger Oba
 * [actions] github action - add Bearer authentication option (#17764) via David Cacenabes
 * [precheck] allow precheck to be run on live app versions as well as edit ones (#17738) via Roger Oba
 * [match] fix MATCH_GIT_PRIVATE_KEY ignored on repo push (#17829) via Sascha P
 * [spaceship] adding headers to connect api response object (#17867) via gsavit
 * [scan][slack] add `slack_default_payloads` option to scan and improve slack action's `default_payloads` docs (#17866) via Roger Oba
 * [sigh] fix undefined method `expires` with `expiration_date` in Sigh::Runner (#17741) via Roger Oba
 * [spaceship] adding missing phased release and review details attributes (#17761) via gsavit
 * [action] add `download_app_privacy_details_from_app_store` action (#17746) via Igor Makarov
 * [match] fix recursion when MATCH_PASSWORD is not set (#17557) via Roger Oba
 * [action] fail nexus_upload action when the underlying command line fails. (#17740) via Roger Oba
 * [deliver] correct dependencies (#17739) via Satoshi Namai
 * [screengrab] quickfix for valid locales like en_US in Screengrab (#17555) via Marc PEREZ
 * [deliver] improve screenshot validation (#17708) via Satoshi Namai
 * [tests] fix random test sample code failing test (#17750) via Josh Holtz
 
 [32m2.170.0 Improvements and Upload App Privacy Details[0m
 * [Fastlane.swift] fixed potential undefined method `action_name' in generator (#17660) via phil zhang
 * [action] onesignal - update onesignal.rb to include optional organization_id (#17696) via Brandon Carpenter
 * [deliver] fix a regression in language detection in Deliver::UploadMetadata (#17730) via Satoshi Namai
 * [action] NEW ACTION for App Data Usages: upload_app_privacy_details_to_app_store (#17592) via Josh Holtz
 * [match] only include enabled devices for force_for_new_devices (#17695) via Steven Roebert
 
 For more information on uploading App Privacy Details,go to https://docs.fastlane.tools/uploading-app-privacy-details/
 
 [32mTo see all new releases,open https://github.com/fastlane/fastlane/releases[0m
 
 [32mPlease update using `sudo gem install fastlane`[0m
 ##[section]Finishing: invoke fastlane And create keychain

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 <select id="xxx"> SELECT di.id, di.name, di.work_type, di.updated... <where> <if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 <property name="dynamic.classpath" value="tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams['font.sans-serif'] = ['SimHei'] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -> systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping("/hires") public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate<String
使用vite构建项目报错 C:\Users\ychen\work>npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-