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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
小众软件
小众软件
I
InfoQ
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Martin Fowler
Martin Fowler
月光博客
月光博客
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
V
Visual Studio Blog
博客园 - 叶小钗
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
GbyAI
GbyAI
P
Proofpoint News Feed
Apple Machine Learning Research
Apple Machine Learning Research

标签 on 打工人日志

日报 k8s Guide Self-Hosted Automation CLI error linux nginx pve daliy 运维 docker stable diffusion github 测试 gitlab 日常生活 midjourney ChatGPT skywalking work 周报 基础 oracle brew logstash IPFS web3.0 nps
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/.