! CocoaPods 找不到 pod“flutter_webrtc”的兼容版本:

问题描述 投票:0回答:1

我正在使用 Codemagic,因为我没有 Mac。这是我得到的错误。

    [!] CocoaPods could not find compatible versions for pod "flutter_webrtc":
      In Podfile:
        flutter_webrtc (from `.symlinks/plugins/flutter_webrtc/ios`)

    Specs satisfying the `flutter_webrtc (from `.symlinks/plugins/flutter_webrtc/ios`)` dependency were found, but they required a higher minimum deployment target.

在 Flutter Windows 中,没有 Podfile。 在不使用 Mac 的情况下如何解决此错误?

我尝试使用 ruby 和 cocoapods,但它不起作用。

ios flutter windows webrtc codemagic
1个回答
0
投票

您可以远程访问Codemagic macOS 计算机并初始化新文件并将更改推送到您的存储库。

连接后,从终端运行这些命令。例如,这就是初始化 pod 的方法。

cd ios
pod init
gh auth login --with-token <YOUR_GITHUB_PAT_TOKEN>
git add .
git commit -m "Added Podfile"
git push

为了将更改推送到您的存储库,您需要在 git 提供商中验证自己的身份。这是必要的,因为 Codemagic 仅具有 GitHub 存储库的读取权限。为了通过 GitHub 进行身份验证,您需要使用您的 GitHub 个人访问令牌。请参阅如何从 https://github.com/settings/tokens 生成令牌。

© www.soinside.com 2019 - 2024. All rights reserved.