繁体   English   中英

Nativescript IOS 构建 Cacoapods 找不到 pod 的兼容版本

[英]Nativescript IOS build Cacoapods could not find compatible versions for pod

我有 Nativescript 8 个应用程序:

{
  "name": "TEST",
  "main": "src/main.ts",
  "version": "1.0.1",
  "private": true,
  "dependencies": {
    "@angular/animations": "~14.2.0",
    "@angular/common": "~14.2.0",
    "@angular/compiler": "~14.2.0",
    "@angular/core": "~14.2.0",
    "@angular/forms": "~14.2.0",
    "@angular/platform-browser": "~14.2.0",
    "@angular/platform-browser-dynamic": "~14.2.0",
    "@angular/router": "~14.2.0",
    "@nativescript-community/ui-zoomimage": "^4.3.6",
    "@nativescript/angular": "~14.2.0",
    "@nativescript/camera": "^5.0.13",
    "@nativescript/core": "~8.3.0",
    "@nativescript/datetimepicker": "^2.1.11",
    "@nativescript/firebase": "^11.1.3",
    "@nativescript/firebase-auth": "^2.4.4",
    "@nativescript/firebase-core": "^2.4.4",
    "@nativescript/firebase-firestore": "^2.4.4",
    "@nativescript/firebase-storage": "^2.4.4",
    "@nativescript/imagepicker": "^1.0.7",
    "@nativescript/local-notifications": "^6.0.0",
    "@nativescript/theme": "~3.0.2",
    "@triniwiz/nativescript-image-zoom": "^4.2.0",
    "moment": "^2.29.4",
    "nativescript-phone": "^3.0.3",
    "nativescript-ui-listview": "^14.2.4",
    "rxjs": "~7.5.0",
    "zone.js": "~0.11.5"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~14.2.0",
    "@angular/compiler-cli": "~14.2.0",
    "@nativescript/ios": "8.4.0",
    "@nativescript/preview-cli": "1.0.2",
    "@nativescript/types": "~8.3.0",
    "@nativescript/webpack": "~5.0.9",
    "@ngtools/webpack": "~14.2.0",
    "typescript": "~4.7.0"
  }
}

在我尝试运行ns build ios :错误:

安装吊舱...分析依赖预下载:FirebaseFirestore 来自https://github.com/invertase/firestore-ios-sdk-frameworks.git ,标记 9.6.0 预下载:来自https://github.com的 QBImagePickerController /flypapertech/QBImagePicker.git , commit 47aa21d32f8e6db0df79b089ad64e43d498b5951 [:] CocoaPods could not find compatible versions for pod "FirebaseFirestore": In Podfile: FirebaseFirestore (from https://github.com/invertase/firestore-ios-sdk-frameworks.git ,标签 9.6.0)

满足 FirebaseFirestore(来自https://github.com/invertase/firestore-ios-sdk-frameworks.git` ,标签 9.6.0)` 依赖项的规范被发现,但它们需要更高的最低部署目标。 “arch install”命令失败。

我应该改变什么才能使这个构建工作? 我什至无法理解错误本身,有人可以解释一下吗?

一般来说,您可能会在 Nativescript Discord 服务器上更快地得到答案。

我相信它是在告诉您它无法从 CocoaPods 找到/安装正确的 pod。

它正在寻找与最低 iOS 版本兼容的 pod。

您可以通过将

IPHONEOS_DEPLOYMENT_TARGET = 13.0;

在你的 build.xcconfig 文件中。

然后运行

ns clean

然后再试一次。

如果这不起作用,您可能还需要运行

pod repo update 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM