簡體   English   中英

CocoaPods 找不到 pod“UMCore”的兼容版本

[英]CocoaPods could not find compatible versions for pod “UMCore”

錯誤報告

問題摘要

在按照通過更改 AppDelegate.h、AppDelegate.m 和 Podfile 來安裝 unimodules 的步驟后運行 pod install 時出現錯誤。

環境 - expo expo diagnostics的 output 和您的目標平台

Expo CLI 4.0.13 environment info:
    System:
      OS: macOS 11.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.15.1 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.10.0 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: iOS 14.3, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
      Android SDK:
        API Levels: 26, 28, 29, 30
        Build Tools: 28.0.3, 29.0.2, 30.0.3
        System Images: android-28 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 4.0 AI-193.6911.18.40.6514223
      Xcode: 12.3/12C33 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.13.1 => 16.13.1 
      react-dom: ^16.13.0 => 16.13.0 
      react-native: 0.63.4 => 0.63.4 
    npmGlobalPackages:
      expo-cli: 4.0.13
    Expo Workflow: bare

可重現的演示

錯誤如下:

[!] CocoaPods could not find compatible versions for pod "UMCore":
  In Podfile:
    UMCore (from `../node_modules/@unimodules/core/ios`)

    UMPermissionsInterface (from `../node_modules/unimodules-permissions-interface/ios`) was resolved to 5.4.0, which depends on
      UMCore

Specs satisfying the `UMCore (from `../node_modules/@unimodules/core/ios`), UMCore` dependency were found, but they required a higher minimum deployment target.

重現步驟

  1. npm install --save react-native-unimodules
  2. 請按照此處的步驟操作: https://docs.expo.io/bare/installing-unimodules/
  3. pod 安裝在 ios 目錄中

預期行為與實際行為

預期的行為是 pod install 沒有任何錯誤,但會收到 Reproducible Demo 部分中顯示的錯誤。

出現此問題是因為庫UMCore pod 文件的開發目標大於您項目的開發目標。 要解決此問題,請查找 UMCore 庫的 pod 文件並檢查s.ios.deployment_target的值。 如果價值開發目標大於您的項目開發目標,則為您的項目開發目標設置相同的目標值。

要更改您的項目開發目標,請在 xcode 中打開項目。 從 xcode 常規選項卡 > 部署信息。 在這里你可以改變。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM