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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
T
Threatpost
T
The Exploit Database - CXSecurity.com
T
Threat Research - Cisco Blogs
S
Securelist
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
S
Secure Thoughts
MyScale Blog
MyScale Blog
O
OpenAI News
P
Palo Alto Networks Blog
美团技术团队
C
Cyber Attacks, Cyber Crime and Cyber Security
TaoSecurity Blog
TaoSecurity Blog
量子位
L
Lohrmann on Cybersecurity
G
GRAHAM CLULEY
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
Know Your Adversary
Know Your Adversary
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Simon Willison's Weblog
Simon Willison's Weblog
宝玉的分享
宝玉的分享
PCI Perspectives
PCI Perspectives
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
I
InfoQ
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
S
Security @ Cisco Blogs
S
Schneier on Security
B
Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
The Cloudflare Blog
AWS News Blog
AWS News Blog
IT之家
IT之家
V
Vulnerabilities – Threatpost
The Hacker News
The Hacker News
H
Heimdal Security Blog
I
Intezer
A
Arctic Wolf
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Help Net Security
W
WeLiveSecurity

专栏 on 打工人日志

日报 k8s入门系列 问题库系列 web服务 日常系列 福利系列 基础知识系列 docker进阶系列 stable diffusion github 测试 k8s系列 git入门系列 人工智能系列 运维监控系列 web服务入门系列 周报系列 oracle系列 Mac系列 web3.0 旅行系列 美食家常菜系列 go系列 docker入门系列 mysql系列 打赏
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/.