homebrew,gem,cocoapod 换源,以及安装依赖

安装homebrew

bash 复制代码
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

再按照成功提示配置环境变量

ruby

更新ruby到最新

bash 复制代码
brew install ruby

如果安装了会自动升级

安装完成后根据提示配置环境变量

再执行命令使其生效

bash 复制代码
source ~/.zshrc

安装cocoapods

bash 复制代码
sudo gem install cocoapods

完成后执行

bash 复制代码
pod setup

cocoapods换源

bash 复制代码
$ cd ~/.cocoapods/repos 
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

然后在项目Podfile中第一行

bash 复制代码
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'

cocoapods安装NMSSH

在podfile中,添加依赖以及版本

bash 复制代码
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
platform :macos, '11.0'

target 'app' do
  use_frameworks!

  # 添加 NMSSH 依赖
  pod 'NMSSH', '~> 2.3.1'
end

再执行

bash 复制代码
pod install

最后通过 .xcworkspac 打开项目

相关推荐
EchoZeal15 小时前
Linux远程连接主机——ssh命令详解
linux·运维·服务器·ssh
chenzfp1 天前
【运维】统信UOS操作系统aarch64自制OpenSSH 9.6p1 rpm包(含ssh-copy-id命令)修复漏洞
linux·运维·ssh
DYF-AI1 天前
ssh登录wsl2
运维·ssh
CC_IsMe3 天前
Linux服务器 TensorFlow找不到GPU
linux·jupyter·ssh·conda·tensorflow
笨小蛙4 天前
服务器Docker容器创建与VScode远程连接SSH使用
服务器·vscode·docker·容器·ssh
浩浩测试一下4 天前
reverse_ssh 建立反向 SSH 连接指南 混淆&&AV [好东西哟]
运维·开发语言·网络·安全·网络安全·ssh·php
识途老码5 天前
使用ssh-audit扫描ssh过期加密算法配置
运维·服务器·ssh
高峰聚焦6 天前
深入理解 SELinux:通过 Nginx 和 SSH 服务配置实践安全上下文与端口策略
nginx·安全·ssh
皓月盈江6 天前
阿里云服务器SSH远程登陆输错密码次数过多导致本地IP禁止登陆,网站和Linux宝塔面板无法访问,但是网站在其他网络访问一切正常
服务器·阿里云·ssh·linux宝塔面板·输错密码次数过多·服务器禁止ip登陆·其他网络访问正常
今年不养猪只除草6 天前
VSCode远程开发-本地SSH隧道保存即时修改
ide·vscode·ssh