1

以 sdk 12.1 为目标时,为 ios 内置 sidekick 总是失败。希望更新到最新的 nativescript 和 sidekick 可以解决这个问题,但它仍然存在。安卓运行良好。

我已将 nativescript、sidekick 和 xcode 更新到最新版本,迁移了我的项目。尝试删除/添加 tns 平台,删除/安装 xcode,更新组件。问题仍然存在。

任何帮助将非常感激 :)

tns 医生 说:

✔ 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 10.3.0 satisfies minimum required version 10.  
✔ Getting NativeScript components versions information...  
✔ Component nativescript has 6.0.2 version and is up to date.  
✔ Component tns-core-modules has 6.0.2 version and is up to date.  
⚠ Update available for component tns-android. Your current version is 6.0.0 and the latest available version is 6.0.1.  
✔ Component tns-ios has 6.0.1 version and is up to date. 

json.package 文件中的依赖关系:

"dependencies": {  
    "@types/node": "^12.6.8",  
    "axios": "^0.19.0",  
    "nativescript-barcodescanner": "^3.2.1",  
    "nativescript-platform-css": "1.6.9",  
    "nativescript-theme-core": "1.0.6",  
    "nativescript-vue": "2.4.0",   
    "tns-core-modules": "^6.0.2", 
    "tslib": "^1.10.0",  
    "vuex": "^3.1.1"  
  },  
  "devDependencies": {  
    "@babel/core": "7.4.5",  
    "@babel/preset-env": "7.4.5",  
    "babel-loader": "~8.0.6",  
    "nativescript-dev-webpack": "1.0.2",  
    "nativescript-vue-template-compiler": "~2.4.0",  
    "node-sass": "4.12.0",  
    "tns-core-modules-widgets": "^6.0.1",  
    "tns-platform-declarations": "^6.0.2",  
    "typescript": "3.4.5",  
    "vue-loader": "~15.7.1"  
  }, 

错误输出:

[19-07-29 11:38:37.271] (CLI) ** ARCHIVE FAILED ** [19-07-29 11:38:37.271] (CLI) 以下构建命令失败:[19-07-29 11: 38:37.271] (CLI) \tProcessPCH /tmp/builds/ /e0e933b61c66a857c8413163ff98f28c705b345f/6.0.2/6.0.1/VetZooExpress/platforms/ios/DerivedData/VetZooExpress/Build/Intermediates.noindex/ArchiveIntermediates/VetZooExpress/PrecompiledHeaders/SharedPrecompiledHeaders/5472762253979011612 /VetZooExpress-Prefix.pch.gch /tmp/builds/ /e0e933b61c66a857c8413163ff98f28c705b345f/6.0.2/6.0.1/VetZooExpress/platforms/ios/VetZooExpress/VetZooExpress-Prefix.pch normal armv7 Objective-c com.apple.compilers.llvm。 clang.1_0.compiler
[19-07-29 11:38:37.271](CLI)(1 次失败)[19-07-29 11:38:37.271](CLI)[xcode-build] armv7 架构已弃用您的部署目标(iOS 12.1)。您应该更新 ARCHS 构建设置以删除 armv7 架构。(在目标“VetZooExpress”中)[19-07-29 11:38:37.271](CLI)[xcode-build] clang:错误:无效的 iOS 部署版本“-miphoneos-version-min=12.1”,iOS 10 是32 位目标的最大部署目标 [-Winvalid-ios-deployment-target] [19-07-29 11:38:38.710] (CLI) ** ARCHIVE FAILED ** [19-07-29 11:38:38.710 ] (CLI) 以下构建命令失败:[19-07-29 11:38:38.710] (CLI) \tProcessPCH /tmp/builds//e0e933b61c66a857c8413163ff98f28c705b345f/6.0.2/6.0.1/VetZooExpress/platforms/ios/DerivedData/VetZooExpress/Build/Intermediates.noindex/ArchiveIntermediates/VetZooExpress/PrecompiledHeaders/SharedPrecompiledHeaders/5472762253979011612/VetZooExpress-Prefix.pch.gch /tmp/builds/ / e0e933b61c66a857c8413163ff98f28c705b345f/6.0.2/6.0.1/VetZooExpress/platforms/ios/VetZooExpress/VetZooExpress-Prefix.pch normal armv7 Objective-c com.apple.compilers.llvm.clang.1_0.compiler
[19-07-29 11:38 :38.710](CLI)(1 次失败)[19-07-29 11:38:49.823] 构建步骤已完成。

4

0 回答 0