惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
Docker
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
MyScale Blog
MyScale Blog
H
Help Net Security
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
M
MIT News - Artificial intelligence
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏

分类 on 打工人日志

日报 k8s OpenClaw AI 问题库 web 服务器 日常 福利 基础 docker stable diffusion github 测试 gitlab 人工智能 监控 work 周报 数据库 Mac web3.0 旅行 美食 go 打赏
IOS 开发
2023-07-31 · via 分类 on 打工人日志

背景 CocoaPods 是OS X和IOS 下的第三类库管理工具,通过CocoaPods工具我们可以为项目添加被称为Pods的依赖库 检查环境 ruby -v gem -v 出现异常问题 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin22/rbconfig.rb:21: warning: Insecure world writable dir /opt/homebrew/bin in PATH, mode 040777 该警告信息表明在你的PATH环境变量中包含了一个“不安全可写”(Insecure world writable)的目录/opt/homebrew/bin。这可能会导致潜在的安全问题。 为了解决这个警告,你需要修复/opt/homebrew/bin目录的权限,以使其不再被标记为“不安全可写”。 解决问题 chmod 755 /opt/homebrew/bin chmod 755 /opt/homebrew chmod 755 /opt/homebrew/sbin 安装cocoapods 输入安装命令 1sudo gem install cocoapods 出现异常问题 ERROR: While executing gem … (Gem::FilePermissionError) You don’t have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory. /Library/Ruby/Site/2.6.0/rubygems/installer.rb:714:in verify_gem_home' /Library/Ruby/Site/2.6.0/rubygems/installer.rb:904:in pre_install_checks' …… 在 macOS 系统中,系统的Ruby目录通常是受保护的,并且普通用户没有对这些目录进行写操作的权限。为了解决这个问题,你应该避免在系统级别的Ruby目录中进行Gem的安装。相反,你应该使用用户级别的Gem安装目录。 解决方案 1mkdir -p ~/.gem/ruby/2.6.0 2export PATH="$HOME/.