CocoaPods requires your terminal to be using UTF-8 encoding
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
See https://github.com/CocoaPods/guides.cocoapods.org/issues/26 for
possible solutions.
one solution:
To prevent the invalid byte sequence in US-ASCII issue users should properly setup their environment to use UTF8:
export LC_ALL="en_US.UTF-8"
This thread highlights this common troubleshooting question.
other one (Recommended),
So there's two ways to approach this, which is reflected in the two types of answers here.
One is to make a permanent change to your environment by changing your shell configuration (e.g. .bashrc or locale defaults). So running this app on another machine will run into similar errors.
The other way is to change this setting as part of the build process of your app, so it will run successfully on any machine - but every time you create a new app using the Cocoapods plugin you'll need to add this script.
My preference is for the latter, so here's how to do that:
Edit your current build scheme - cmd-option-R
Expand Build, and select Pre-actions
Add a New Run Script Action
Then for your script, just add:
export LC_ALL="en_US.UTF-8"This worked for me. It should look something like this:

CocoaPods requires your terminal to be using UTF-8 encoding的更多相关文章
- jenkins执行 pod install 报错 CocoaPods requires your terminal to be using UTF-8 encoding.     Consider adding the following to ~/.profile:
		错误提示是: CocoaPods 需要终端使用utf-8编码 解决办法 
- iOS cocoapods升级及问题
		安装 安装RubyCocoaPods基于Ruby语言开发而成,因此安装CocoaPods前需要安装Ruby环境.幸运的是Mac系统默认自带Ruby环境,如果没有请自行查找安装.检测是否安装Ruby:$ ... 
- 自己关于cocoapods的使用的一些理解和总结
		老大让我自己学习用一下cocoapods的使用,于是自己上网查了很多的信息,在安装使用过程中,总是出现了很多问题,然后发现有些人的教程好像并不完全好用,我的感觉是应该每个人遇到的问题都不尽相同,所以 ... 
- 如何正确使用Cocoapods
		➠更多技术干货请戳:听云博客 一.介绍Cocoapods Cocoapods是引入为项目引入新血液的接口,只有引入了新血液,功能才可以多样化,进而满足不同的消费群体.使用Cocoapods可以方便日后 ... 
- ios安装cocoaPods
		1. 安装 a. 查看源 i. gem sources -l b. 删除源 i. sudo gem sources -r https://rubygems.org/ c. 设置源 i. s ... 
- 最新Mac安装CocoaPods详细教程及各种坑解决办法
		网上有很多教程,但要么内容很老,要么不详细,要么各种坑的情况没写.最近买新电脑了,正好要走一遍这些流程,所以写下次教程. 一.安装RVM及更新Ruby 安装RVM的目的是为了更新Ruby,如果你的Ru ... 
- linux - console/terminal/virtual console/pseudo terminal ...
		http://en.wikipedia.org/wiki/System_console System console Knoppix system console showing the boot p ... 
- 【CocoaPods】ERROR:  While executing gem ... Gem::DependencyError
		今天安装 CocoaPods 时遇到了这个问题. ERROR: While executing gem ... (Gem::DependencyError) Unable to resolve dep ... 
- OSX 10.14.2 安装Cocoapods 出现问题的解决方法
		今天尝试用 Cocoapods安装个第三方库.. 输入pod install, 发现 command not find. WTF! 估计是升级10.11后Cocoapods被干掉了. 我输入 sudo ... 
随机推荐
- Nginx + Tomcat 动静分离实现负载均衡(转)
			0.前期准备 使用Debian环境.安装Nginx(默认安装),一个web项目,安装tomcat(默认安装)等. 1.一份Nginx.conf配置文件 # 定义Nginx运行的用户 和 用户组 如果对 ... 
- startDiscovery() and startLeScan().
			You have to start a scan for Classic Bluetooth devices with startDiscovery() and a scan for Bluetoot ... 
- 交互式shell和非交互式shell、登录shell和非登录shell的区别
			交互式shell和非交互式shell.登录shell和非登录shell的区别.首先,这是两个不同的维度来划分的,一个是是否交互式,另一个是是否登录. 交互式shell和非交互式shell(intera ... 
- BOM-字节序标记
			BOM——Byte Order Mark 字节序标记 首先是什么是字节序? 字节序:与二进制数据在机器存放位置相关的! 可分为两类: 1. 小端字节序: 低地址放低位数据. x86系列的计算机就使用这 ... 
- oracle merge into  语法
			MERGE INTO upperLowerLimitData t1 USING (select name,enname,starttime,value ... from dual) t2 ON ( ... 
- 一些css效果积累
			悬浮效果: ul li a{text-decoration: none;color: black} ul li a:hover{color: blue} 鼠标变小手 span:hover{cur ... 
- MySQL性能优化的最佳20+条经验(转)
			今天,数据库的操作越来越成为整个应用的性能瓶颈了,这点对于Web应用尤其明显.关于数据库的性能,这并不只是DBA才需要担心的事,而这更是我 们程序员需要去关注的事情.当我们去设计数据库表结构,对操作数 ... 
- ZOJ 3778 Talented Chef(找规律,模拟计算,11届ACM省赛,简单)
			题目链接 2014年浙江省赛C题,当时觉得难,现在想想这题真水.. 找规律: 若 最大的那个步骤数*m-总和>=0,那么答案就是 最大的那个步骤数 . 否则 就要另加上不够的数量,具体看代 ... 
- javascript中li标签的排序和数组sort的用法
			<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <m ... 
- 用 Xamarin for VS 创建 aar 文件的绑定
			预备工作:相关aar文件,Xamarin for VS一份.我这里以Android中挺火的 MaterialDesignLibrary 为例. 1.首先,创建一个Xamarin Binding Lib ... 
