相关疑难解决方法(0)

CocoaPods 未安装。跳过 Pod 安装

我的应用程序运行良好,直到我做了 2 个小更改。

  1. 在 Xcode 中的 Target runner 上,我为项目启用了位码。
  2. 我将Android studio更新到最新版本。

Android Studio 大黄蜂 | 2021.1.1 Build #AI-211.7628.21.2111.8092744,构建于 2022 年 1 月 19 日 运行时版本:11.0.11+0-b60-7590822 x86_64 VM:OpenJDK 64 位服务器 VM by JetBrains sro macOS 12.0.1 GC:G1年轻一代、G1 老一代内存:1280M 核心:4 注册表:external.system.auto.import.disabled=true 非捆绑插件:Dart (211.7798)、org.jetbrains.kotlin (211-1.6.10-release-923 -AS7442.40), io.flutter (63.2.2)

之后,当我在 iOS 模拟器上运行我的 flutter 应用程序时,我收到此错误。虽然我已经禁用了位码并再次尝试。我得到了同样的错误。我安装并重新安装了 cocapoads 还是同样的错误。我不知道是什么原因导致这个错误。你能帮我吗?请

 Warning: CocoaPods not installed. Skipping pod install.
 CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that          responds to your plugin usage on the …
Run Code Online (Sandbox Code Playgroud)

ios cocoapods android-studio flutter

35
推荐指数
4
解决办法
1万
查看次数

无法安装可可豆荚

我想在 MacOS 上安装 cocoapods 来运行 pod 命令。但是在做

sudo gem install cocoa-pods
Run Code Online (Sandbox Code Playgroud)

我得到以下信息:

Building native extensions. This could take a while...
ERROR:  Error installing cocoapods:
    ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/2.7.0/gems/ffi-1.13.1/ext/ffi_c
/usr/local/opt/ruby/bin/ruby -I /usr/local/Cellar/ruby/2.7.1_2/lib/ruby/2.7.0 -r ./siteconf20200702-22528-1o4wbn0.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include …
Run Code Online (Sandbox Code Playgroud)

homebrew rubygems cocoapods

17
推荐指数
3
解决办法
8052
查看次数

标签 统计

cocoapods ×2

android-studio ×1

flutter ×1

homebrew ×1

ios ×1

rubygems ×1