Jenkins Podfile不兼容字符编码:UTF-8和ASCII-8BIT

Jenkins Podfile不兼容字符编码:UTF-8和ASCII-8BIT,jenkins,encoding,cocoapods,Jenkins,Encoding,Cocoapods,运行pod install时出现问题 我使用詹金斯作为CI系统。 当我在pc上本地运行该命令时,它会按预期工作。但是当Jenkins运行pod安装时,我得到一个编码错误: [10:08:33]: ▸ Updating local specs repositories [10:08:33]: ▸ CocoaPods 1.0.0.rc.1 is available. [10:08:33]: ▸ To update use: `sudo gem install cocoapods --pre` [10

运行
pod install
时出现问题

我使用詹金斯作为CI系统。 当我在pc上本地运行该命令时,它会按预期工作。但是当Jenkins运行pod安装时,我得到一个编码错误:

[10:08:33]: ▸ Updating local specs repositories
[10:08:33]: ▸ CocoaPods 1.0.0.rc.1 is available.
[10:08:33]: ▸ To update use: `sudo gem install cocoapods --pre`
[10:08:33]: ▸ [!] This is a test version we'd love you to try.
[10:08:33]: ▸ For more information see http://blog.cocoapods.org
[10:08:33]: ▸ and the CHANGELOG for this version http://git.io/BaH8pQ.
[10:08:33]: ▸ Analyzing dependencies
[10:08:33]: ▸ /Users/********/.rvm/gems/ruby-2.1.5/gems/cocoapods-0.39.0/lib/cocoapods/user_interface/error_report.rb:13:in `report': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/gems/cocoapods-0.39.0/lib/cocoapods/command.rb:61:in `report_error'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/gems/claide-0.9.1/lib/claide/command.rb:374:in `handle_exception'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/gems/claide-0.9.1/lib/claide/command.rb:315:in `rescue in run'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/gems/claide-0.9.1/lib/claide/command.rb:303:in `run'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/gems/cocoapods-0.39.0/lib/cocoapods/command.rb:47:in `run'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/gems/cocoapods-0.39.0/bin/pod:44:in `<top (required)>'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/bin/pod:23:in `load'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/bin/pod:23:in `<main>'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval'
[10:08:33]: ▸ from /Users/********/.rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `<main>'

就我个人而言,我不认为这与詹金斯有关,因为它在我的mac电脑上也不起作用,但我不确定。

你已经检查过了吗?->podfile的编码可能有问题podfile保存在UTF-8中。。。所以我想应该很好你在用文本编辑吗?如果你阅读了我发给你的链接,你就会发现,在Mac上使用TextEdit时存在问题。用vi检查你的文件,你应该能够看到,你是否有所有正确的引用。是的,我知道这个问题,但我使用的是Sublime。不管怎样,如果我在我的Mac上运行pod安装,它就会工作。但如果我在詹金斯身上运行它,它不会。可能是某个环境变量出错或其他问题。您已经检查过了吗?->podfile的编码可能有问题podfile保存在UTF-8中。。。所以我想应该很好你在用文本编辑吗?如果你阅读了我发给你的链接,你就会发现,在Mac上使用TextEdit时存在问题。用vi检查你的文件,你应该能够看到,你是否有所有正确的引用。是的,我知道这个问题,但我使用的是Sublime。不管怎样,如果我在我的Mac上运行pod安装,它就会工作。但如果我在詹金斯身上运行它,它不会。可能是环境变量出了问题或其他什么。
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, 8.0
inhibit_all_warnings!

xcodeproj 'SkyApp.xcodeproj'

def common_pods
  pod 'Jibber-Framework', '~> 2.0', :configurations => ['Dev-Debug']
  pod 'SVProgressHUD'
  pod 'AFOAuth2Manager', '~> 2.2.0'
  pod 'AFNetworking'
  pod 'ObjectiveLuhn'
  pod 'Bolts'
  pod 'RNCryptor', '3.0.0'
  pod 'SVPullToRefresh',                  :git => 'https://github.com/iOS-stars/SVPullToRefresh', :commit => '16024d81407cf94c8db0ac7cd1013757761ea9fd'
  pod 'CrittercismSDK', '~> 5.5.5'
  # Payment providers
  pod 'Stripe'
  pod 'Braintree'

  # Debugging
  pod 'Reveal-iOS-SDK',    :configurations => ['Dev-Debug']
  pod 'MAObjCRuntime',     :configurations => ['Dev-Debug']
end

def testing_pods
  pod 'Kiwi'
end

target 'SkyApp', :exclusive => true  do
  common_pods
end

target 'SkyApp-cal', :exclusive => true  do
  common_pods
end

target 'SkyAppTests', :exclusive => true do
  testing_pods
end

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