【问题标题】:expo EAS build (iOS) fails in Pod installation stepexpo EAS build (iOS) 在 Pod 安装步骤中失败
【发布时间】:2022-10-17 22:58:55
【问题描述】:

我正在尝试使用命令 'eas build --platform ios' 进行构建,但在 Pod 安装步骤中构建失败。我也尝试清除缓存,但没有任何改变。

这是日志:

Auto-linking React Native modules for target `BallNConnect`: RNCAsyncStorage, RNCMaskedView, RNDateTimePicker, RNDeviceInfo, RNFBApp, RNFBFirestore, RNGestureHandler, RNReanimated, RNScreens, RNVectorIcons, lottie-ios, lottie-react-native, react-native-maps, and react-native-safe-area-context
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
CocoaPods 1.11.3 is available.
To update use: `sudo gem install cocoapods`
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.3
[!] CocoaPods could not find compatible versions for pod "GoogleMaps":
  In Podfile:
    react-native-google-maps (from `/Users/expo/workingdir/build/node_modules/react-native-maps`) was resolved to 0.29.4, which depends on
      Google-Maps-iOS-Utils (= 2.1.0) was resolved to 2.1.0, which depends on
        GoogleMaps
    react-native-google-maps (from `/Users/expo/workingdir/build/node_modules/react-native-maps`) was resolved to 0.29.4, which depends on
      GoogleMaps (= 3.5.0)
CocoaPods could not find compatible versions for pod "nanopb":
  In Podfile:
    EXFirebaseCore (from `../node_modules/expo-firebase-core/ios`) was resolved to 4.1.1, which depends on
      Firebase/Core (= 7.7.0) was resolved to 7.7.0, which depends on
        FirebaseAnalytics (= 7.7.0) was resolved to 7.7.0, which depends on
          nanopb (~> 2.30907.0)
    RNFBFirestore (from `../node_modules/@react-native-firebase/firestore`) was resolved to 12.9.3, which depends on
      Firebase/Firestore (= 8.8.0) was resolved to 8.8.0, which depends on
        FirebaseFirestore (~> 8.8.0) was resolved to 8.8.0, which depends on
          nanopb (~> 2.30908.0)
[stderr] [!] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `6D6F16C9EE89401295D6CEB6` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
Error: Compatible versions of some pods could not be resolved.
You are seeing this error because either:
  - Versions in the Podfile.lock cached by EAS do not match required values in Podspecs of some of the libraries. To fix that add the "cache.key" field (it can be set to any value) in the build profile in eas.json to invalidate the cache.
  - Some of the pods used in your project depend on different versions of the same pod. See logs for more information.```

【问题讨论】:

    标签: ios react-native expo cocoapods eas


    【解决方案1】:

    您只能安装 ReactNative Firebase (RNFB) 或 Expo Firebase,但不能同时安装两者。有时没有冲突,但最终会在某个地方出现问题。

    我之前在这方面花了几天时间,唯一的解决方案(根据 Expo discord 的建议)是只安装一个包。这非常不方便,但有时世博会缺乏灵活性恕我直言。

    如果有帮助,请将此标记为答案。欣赏它!

    【讨论】:

      猜你喜欢
      • 2022-11-14
      • 2022-06-23
      • 2021-11-08
      • 2022-06-28
      • 2022-06-23
      • 1970-01-01
      • 1970-01-01
      • 2016-05-09
      • 2022-11-09
      相关资源
      最近更新 更多