Nativescript 6.5 无法在 iOS 上构建模块 'nanopb'

Nativescript 6.5 could not build module 'nanopb' on iOS

我有一个 NS 6.5 应用程序,当我尝试构建时失败并出现以下错误:无法构建模块 'nanopb'

这是我的 package.json:

{
  "nativescript": {
    "id": "io.app.app",
    "tns-ios": {
      "version": "6.5.3"
    }
  },
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "@nativescript/theme": "~2.3.0",
    "@nstudio/nativescript-camera-plus": "3.0.7",
    "@nstudio/nativescript-loading-indicator": "3.0.2",
    "moment": "^2.26.0",
    "nativescript-appversion": "1.4.4",
    "nativescript-carousel": "^6.1.1",
    "nativescript-contacts-lite": "0.2.6",
    "nativescript-custom-bottomsheet": "^1.0.6",
    "nativescript-imagecropper": "^3.0.0",
    "nativescript-iqkeyboardmanager": "^1.5.1",
    "nativescript-masked-text-field": "4.0.3",
    "nativescript-permissions": "1.3.8",
    "nativescript-plugin-firebase": "10.5.2",
    "nativescript-ui-listview": "^8.1.2",
    "tns-core-modules": "6.5.20"
  },
  "devDependencies": {
    "nativescript-dev-webpack": "1.5.1",
    "tns-platform-declarations": "6.5.15",
    "typescript": "~3.5.3"
  },
  "gitHead": "d8bdf0799a219051f28f8abd7c258d2bf2fce6e1",
  "readme": "NativeScript Application"
}

这是我 运行 tns 医生时得到的:

No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 11.5.0 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 6.5.0 and the latest available version is 7.0.10.
✔ Component tns-core-modules has 6.5.20 version and is up to date.
✖ Component tns-android is not installed.
✔ Component tns-ios has 6.5.3 version and is up to date.

我试过删除平台,删除钩子,node_modules,和平台,升级 firebase 插件,但没有任何帮助。

有什么问题吗?

谢谢。

在 XCode 中打开应用程序后,我尝试从那里构建它。这个构建成功了,所以我认为问题出在 NS 上。我通过反复试验修复了它。我一直在玩 NS 全球版本,最后,当我降级到版本 6.2.0 时一切正常。

注意:不要忘记在每次测试前清理您的应用。我使用:

tns platform remove ios
rm -rf node_modules hooks platforms package-lock.json

我不确定为什么这样做有效或问题出在哪里。也许 Nativescript 团队的某个人可以阐明这个主题。