我正在尝试在项目中添加razorpay_flutter 1.1.2,但是在构建过程中出现pod安装错误。
当我从pubspec中删除razorpay_flutter时,我的项目构建成功。我尝试降级该版本,并进行了发布商提到的所有故障排除,但没有任何效果。
这是我的错误。
Running pod install...
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Finding Podfile changes
A razorpay_flutter
- Flutter
- device_info
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `device_info` from `.symlinks/plugins/device_info/ios`
-> Fetching podspec for `razorpay_flutter` from `.symlinks/plugins/razorpay_flutter/ios`
Resolving dependencies of `Podfile`
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_f_9_d.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/Users/kathirva/.rvm/gems/ruby-head/bin/pod install --verbose
```
### Stack
```
CocoaPods : 1.8.4
Ruby : ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-darwin17]
RubyGems : 3.0.6
Host : Mac OS X 10.13.6 (17G4015)
Xcode : 10.1 (10B61)
Git : git version 2.17.2 (Apple Git-113)
Ruby lib dir : /usr/local/Cellar/ruby/2.6.5/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ 81697d55b6ebe7d58eae307fa584ff0b63da639c
trunk - CDN - https://cdn.cocoapods.org/
```
### Plugins
```
cocoapods-deintegrate : 1.0.4
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.1.0
cocoapods-trunk : 1.4.1
cocoapods-try : 1.1.0
```
### Podfile
```ruby
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5'
config.build_settings['ENABLE_BITCODE'] = 'YES'
end
end
end
```
###错误
```
ArgumentError - invalid byte sequence in US-ASCII
/Users/kathirva/.rvm/rubies/ruby-head/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/cdn_source.rb:283:in `split'
[!] Oh no, an error occurred.
Error output from CocoaPods:
↳
[33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
[0m
Ignoring gem-wrappers-1.4.0 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.4.0
Error running pod install
答案 0 :(得分:-1)
您可以尝试运行此
LANG="en_US.UTF-8"
在安装pod之前?
您使用什么操作系统?