pil*_*man 10 macos xcode ios cocoapods swift
首先,我对 iOS 开发和 MAC 真的很陌生(一周只拥有一个)
我正在尝试创建一个需要安装 pod 的 iOS 应用程序,我已经安装了 cocopods 等,然后导航到我的项目目录。然后我生成了 pod 文件并添加了所需的依赖项。当它运行 pod install 时,出现错误,
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
Run Code Online (Sandbox Code Playgroud)
错误顶部:
Analyzing dependencies
/Users/pilotman/.gem/ruby/2.6.0/gems/ethon-0.14.0/lib/ethon/curls/classes.rb:36: [BUG] Illegal instruction at 0x00000001021b4000
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.arm64e-darwin20]
Run Code Online (Sandbox Code Playgroud)
错误底部:
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
zsh: abort pod install
Run Code Online (Sandbox Code Playgroud)
Isk*_*dir 17
这个问题很笼统...您使用的是 Macbook M1 吗?还是英特尔 Macbook?
如果您使用的是英特尔 MacBook ...
$sudo gem install cocoapods
移动到您的文件夹运行 pod init
打开你的 Podfile 并添加你的目标,例如
#platform :ios, '9.0'
target 'MyPod' do
# Pods for MyPod
pod 'Firebase/Auth'
end
Run Code Online (Sandbox Code Playgroud)
关闭 Podfile
类型 pod install
类型 Pod 更新
打开MyPod.xcworkspace并开始工作
如果您使用的是 M1 Mb,请执行相同的操作,但从
然后执行上述步骤。
如果仍然出现此错误,请告诉我。
Cyr*_*Zei 13
如果你使用的是苹果芯片,那么就这样做
sudo gem uninstall cocoapods
brew install cocoapods
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10632 次 |
| 最近记录: |