突然 Jenkins 不再安装 pod

suddenly Jenkins doesn't do pod install anymore

Pod 安装一直在工作,直到它突然停止并显示错误 ArgumentError - US-ASCII Jenkins 中的字节序列无效。 我尝试将 export LC_ALL="en_US.UTF-8" 添加到我的 bash_profile 并在终端中从中采购,但这没有帮助。我找不到 ~/.bashrc 或 ~/.zshrc 文件。 Pod 安装也适用于终端,但不适用于 Jenkins

正在分析依赖关系

正在检查要整合的目标 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/net/http.rb:1109:警告:不鼓励使用环境变量 HTTP_PROXY。使用 http_proxy.

――― 降价模板 ――――――――――――――――――――――――――――――――――――― ――――――――――――――――――

命令

/usr/local/Cellar/cocoapods/1.10.1/libexec/bin/pod install --verbose

举报

堆栈

   CocoaPods : 1.10.1
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
    RubyGems : 3.0.3
        Host : macOS 11.4 (20F71)
       Xcode : 12.5 (12E262)
         Git : git version 2.30.1 (Apple Git-130)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ e6eac0770b8860823225a364d6e56c215581d90b

               

插件

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-trunk       : 1.5.0
cocoapods-try         : 1.2.0

播客文件

project 'FPExperience.xcodeproj'

# ignore all warnings from all pods
inhibit_all_warnings!

source 'https://github.com/CocoaPods/Specs.git'


platform :ios, '10.0'


post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['CLANG_ENABLE_CODE_COVERAGE'] = 'NO'
        end
    end
end

错误

ArgumentError - invalid byte sequence in US-ASCII
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/config.rb:277:in `split'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/config.rb:277:in `hash_from_file_content'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/config.rb:259:in `extract_hash'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/config.rb:64:in `initialize'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_configuration.rb:241:in `new'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_configuration.rb:241:in `config'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_configuration.rb:97:in `resolve_build_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/build_configuration.rb:102:in `resolve_build_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/configuration_list.rb:78:in `block in get_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/configuration_list.rb:77:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/configuration_list.rb:77:in `get_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/xcodeproj-1.19.0/lib/xcodeproj/project/object/native_target.rb:55:in `resolved_build_setting'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:226:in `block in compute_swift_version_from_targets'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:220:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:220:in `inject'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:220:in `compute_swift_version_from_targets'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer/target_inspector.rb:45:in `compute_results'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1189:in `block (3 levels) in inspect_targets_to_integrate'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1187:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1187:in `block (2 levels) in inspect_targets_to_integrate'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1185:in `each'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1185:in `block in inspect_targets_to_integrate'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1180:in `inspect_targets_to_integrate'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:106:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/usr/local/Cellar/cocoapods/1.10.1/libexec/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/Cellar/cocoapods/1.10.1/libexec/bin/pod:23:in `load'
/usr/local/Cellar/cocoapods/1.10.1/libexec/bin/pod:23:in `<main>'

―――模板结束―――――――――――――――――――――――――――――――――――― ―――――――――――――――――――――――

[!] 哦不,发生错误。

搜索与您的问题类似的现有 GitHub 个问题: https://github.com/CocoaPods/CocoaPods/search?q=invalid+byte+sequence+in+US-ASCII&type=Issues

如果 none 存在,请使用上面显示的模板在以下时间创建工单: https://github.com/CocoaPods/CocoaPods/issues/new

请务必先阅读投稿指南,了解有关如何正确提交票证的详细信息: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

不要忘记匿名化任何私人数据!

正在 cocoapods/cocoapods...

上寻找相关问题

还有 21 个位于: https://github.com/cocoapods/cocoapods/search?q=invalid%20byte%20sequence%20in%20US-ASCII&type=Issues&utf8=✓

解决方案是将以下内容添加到标题为环境的部分{ 筹备中

    LANG="en_US.UTF-8"
    LANGUAGE="en_US.UTF-8"
    LC_ALL="en_US.UTF-8"