【问题标题】:Cannot successfully prepare iOS无法成功准备 iOS
【发布时间】:2020-04-20 19:03:07
【问题描述】:

自从从"tns-core-modules": "6.2.1" 升级到"tns-core-modules": "^6.3.2" 后,我似乎无法让tns prepare ios 命令工作。我收到以下消息:

Webpack 编译完成。

正在安装 pod...

分析依赖关系

[!] CocoaPods 找不到 pod 的兼容版本 “MaterialComponents/Tabs”:在 Podfile 中: MaterialComponents/Tabs (~> 92.3)

MaterialComponents/Tabs (~> 94.5)

您的规范源都不包含满足依赖关系的规范: MaterialComponents/Tabs (~> 92.3), MaterialComponents/Tabs (~> 94.5).

您有: * 可以更新的过期源代码库 pod repo updatepod install --repo-update。 * 打错了 名称或版本。 * 未添加托管 Podspec 的源代码库 到你的 Podfile。

[!] MaterialComponents/Tabs 存在重复依赖 Podfile:

  • MaterialComponents/Tabs (~> 92.3)
  • MaterialComponents/Tabs (~> 94.5) 'pod install' 命令失败。有关在 NativeScript 中解决 CocoaPod 问题的更多信息,请阅读。

我尝试运行 pod repo updatepod install --repo-update 没有成功。我在 macOS 10.13.6 (High Sierra) 上使用 xCode 10.1 运行它。

package.json

{
    "description": "xxxx",
    "license": "SEE LICENSE IN <your-license-filename>",
    "readme": "xxxxx",
    "repository": "<fill-your-repository-here>",
    "nativescript": {
        "id": "xxxxxx",
        "tns-android": {
            "version": "6.2.0"
        },
        "tns-ios": {
            "version": "6.3.0"
        }
    },
    "dependencies": {
        "@nativescript/core": "6.2.1",
        "@nativescript/theme": "2.2.0",
        "@progress-nativechat/nativescript-nativechat": "2.0.4",
        "axios": "^0.19.0",
        "kinvey-nativescript-sdk": "4.2.5",
        "nativescript-accelerometer": "3.0.0",
        "nativescript-background-http": "4.2.1",
        "nativescript-camera": "4.5.0",
        "nativescript-fonticon": "^2.0.0",
        "nativescript-geolocation": "5.1.0",
        "nativescript-image": "2.2.5",
        "nativescript-imagepicker": "7.1.0",
        "nativescript-intl": "3.0.0",
        "nativescript-iqkeyboardmanager": "1.5.1",
        "nativescript-purchase": "^2.0.13",
        "nativescript-social-share": "1.5.2",
        "nativescript-theme-core": "1.0.6",
        "nativescript-ui-autocomplete": "6.0.0",
        "nativescript-ui-calendar": "6.0.0",
        "nativescript-ui-chart": "7.0.0",
        "nativescript-ui-dataform": "6.0.0",
        "nativescript-ui-gauge": "6.0.0",
        "nativescript-ui-listview": "8.0.1",
        "nativescript-ui-sidedrawer": "8.0.0",
        "nativescript-vue": "2.4.0",
        "tns-core-modules": "^6.3.2"
    },
    "devDependencies": {
        "@babel/core": "7.6.4",
        "@babel/preset-env": "^7.7.7",
        "babel-loader": "^8.0.2",
        "babel-traverse": "6.26.0",
        "babel-types": "6.26.0",
        "babylon": "6.18.0",
        "clean-webpack-plugin": "^0.1.19",
        "copy-webpack-plugin": "^4.5.2",
        "css-hot-loader": "^1.4.2",
        "css-loader": "^1.0.0",
        "lazy": "1.0.11",
        "mini-css-extract-plugin": "^0.4.1",
        "nativescript-dev-webpack": "1.3.0",
        "nativescript-vue-template-compiler": "^2.0.0-alpha.3",
        "nativescript-worker-loader": "~0.9.0",
        "node-sass": "^4.9.2",
        "sass-loader": "^7.1.0",
        "tns-platform-declarations": "6.2.1",
        "uglifyjs-webpack-plugin": "~1.2.7",
        "vue-loader": "^15.8.3",
        "webpack": "^4.41.5",
        "webpack-bundle-analyzer": "~2.13.1",
        "webpack-cli": "^3.1.0"
    }
}

【问题讨论】:

  • 你能出示你的package.json吗?
  • 当然。我已将其添加为问题的一部分。
  • @Manoj 有什么想法吗?

标签: ios cocoapods nativescript nativescript-vue material-components


【解决方案1】:

我有同样的问题,删除并重新添加 IOS 平台解决了它。

【讨论】:

    猜你喜欢
    • 2017-12-02
    • 1970-01-01
    • 2012-12-14
    • 2018-08-18
    • 2019-03-15
    • 1970-01-01
    • 2021-02-01
    • 2016-10-15
    • 2021-04-26
    相关资源
    最近更新 更多