ios - pod 安装失败,找不到 dylib
问题描述
我的 podfile 是这个。
# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
target 'Task Tracker' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for Task Tracker
pod 'RealmSwift', '~> 10'
end
我正在尝试运行pod install
它给了我错误LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi_c.bundle, 0x0009): dependent dylib '@rpath/libffi.7.dylib' not found for '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi_c.bundle' - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi_c.bundle
我试过的
gem install ffi
arch -x86_64 pod install
还是一样的错误。我错过了什么?
解决方案
If you're using Intel chip Mac and getting this error after trying the above command also, it's because of the cocoa pods installed on your Mac (Not installed properly). Completely remove the cocoapods and install it again from the beginning. This solution will work.
推荐阅读
- ios - 在 YouTube 和 Instagram IOS 等应用程序中使用什么框架播放视频
- flutter - 如何编写一个函数(在flutter-dart中),以便在我们调用该函数时它接受某些参数?
- unix - 密钥库文件格式无效(z/OS Unix 系统服务)
- amazon-web-services - AWS ALB - 如何将现有会话路由到服务器 A,并将新会话路由到服务器 B?
- r - 为什么 bind cols 会生成两个新列?
- mongodb - 如何使用 pymongo 监视数据库中所有集合的更改
- javascript - 弹性搜索查询不适用于非保留字符
- java - 从 preorder 和 inorder 创建 BinaryTree 时出现 java.lang.NullPointerException
- ios - 如何从本地 storekit 配置文件验证服务器上的收据数据?
- python - Django 删除函数覆盖 pgtrigger